You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2022/02/11 23:47:43 UTC

[GitHub] [calcite] twdsilva opened a new pull request #2719: [CALCITE-5010] Modify RexBuilder to use convertlets to transform the …

twdsilva opened a new pull request #2719:
URL: https://github.com/apache/calcite/pull/2719


   …RexCall when possible
   
   SqlRexConvertlets are used to transform a SqlCall into a RexCall while parsing a sql string. A RelNode that is created using RelBuilder does not use the same transformations. This causes the following error while trying to use RelBuilder to create a relnode that use  TIMESTAMPDIFF().
   
   Suppressed: java.lang.RuntimeException: cannot translate call TIMESTAMPDIFF($t8, $t4, $t9)
   at org.apache.calcite.adapter.enumerable.RexToLixTranslator.visitCall(RexToLixTranslator.java:1157)
   at org.apache.calcite.adapter.enumerable.RexToLixTranslator.visitCall(RexToLixTranslator.java:98)
   
   Modify RexBuilder to check if there is a convertlet that exists for the operator being constructed and transform the RexCall using the convertlet.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org