Skip to content

Commit

Permalink
Merge pull request opensearch-project#5 from Bit-Quill/dialect-fix-MI…
Browse files Browse the repository at this point in the history
…D-return-type-AOS-202

Dialect: fix return type for MID function as part of AOS-202
  • Loading branch information
Yury-Fridlyand authored Nov 23, 2021
2 parents 2df3f26 + fa32866 commit 7aaf59d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sql-jdbc/src/TableauConnector/opensearch_sql_jdbc/dialect.tdd
Original file line number Diff line number Diff line change
Expand Up @@ -242,35 +242,35 @@
<argument type='date' />
</function>

<function group='string' name='MID' return-type='int'>
<function group='string' name='MID' return-type='str'>
<formula>SUBSTR(%1,%2)</formula>
<argument type='str' />
<argument type='int' />
</function>
<function group='string' name='MID' return-type='int'>
<function group='string' name='MID' return-type='str'>
<formula>SUBSTR(%1,CAST(%2 as int))</formula>
<argument type='str' />
<argument type='real' />
</function>
<function group='string' name='MID' return-type='int'>
<function group='string' name='MID' return-type='str'>
<formula>SUBSTR(%1,%2,%3)</formula>
<argument type='str' />
<argument type='int' />
<argument type='int' />
</function>
<function group='string' name='MID' return-type='int'>
<function group='string' name='MID' return-type='str'>
<formula>SUBSTR(%1,CAST(%2 as int),%3)</formula>
<argument type='str' />
<argument type='real' />
<argument type='int' />
</function>
<function group='string' name='MID' return-type='int'>
<function group='string' name='MID' return-type='str'>
<formula>SUBSTR(%1,%2,CAST(%3 as int))</formula>
<argument type='str' />
<argument type='int' />
<argument type='real' />
</function>
<function group='string' name='MID' return-type='int'>
<function group='string' name='MID' return-type='str'>
<formula>SUBSTR(%1,CAST(%2 as int),CAST(%3 as int))</formula>
<argument type='str' />
<argument type='real' />
Expand Down

0 comments on commit 7aaf59d

Please sign in to comment.