[
https://issues.apache.org/jira/browse/DRILL-8210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17533297#comment-17533297
]
ASF GitHub Bot commented on DRILL-8210:
---------------------------------------
vvysotskyi opened a new pull request, #2534:
URL: https://github.com/apache/drill/pull/2534
# [DRILL-8210](https://issues.apache.org/jira/browse/DRILL-8210): Add
substring convertlet
## Description
See Jira ticket description for details
## Documentation
NA
## Testing
Unit test pass on newer Calcite
> Add substring convertlet
> ------------------------
>
> Key: DRILL-8210
> URL: https://issues.apache.org/jira/browse/DRILL-8210
> Project: Apache Drill
> Issue Type: Sub-task
> Reporter: Vova Vysotskyi
> Assignee: Vova Vysotskyi
> Priority: Major
>
> Newer Calcite requires adding convertlet for substring to prevent using
> ReflectiveConvertletTable, so queries that use substring will fail with
> {noformat}
> Caused by: java.lang.IllegalArgumentException: argument type mismatch
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.apache.calcite.sql2rel.ReflectiveConvertletTable.lambda$registerOpTypeMethod$3(ReflectiveConvertletTable.java:140)
> at
> org.apache.calcite.sql2rel.SqlNodeToRexConverterImpl.convertCall(SqlNodeToRexConverterImpl.java:62)
> at
> org.apache.calcite.sql2rel.SqlToRelConverter$Blackboard.visit(SqlToRelConverter.java:5352)
> at
> org.apache.calcite.sql2rel.SqlToRelConverter$Blackboard.visit(SqlToRelConverter.java:4547)
> at org.apache.calcite.sql.SqlCall.accept(SqlCall.java:161)
> at
> org.apache.calcite.sql2rel.SqlToRelConverter$Blackboard.convertExpression(SqlToRelConverter.java:5180)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)