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 2019/05/30 12:19:18 UTC

[GitHub] [calcite] danny0405 commented on a change in pull request #1066: [CALCITE-2843] Babel parser should support PostgreSQL casting operator '::'

danny0405 commented on a change in pull request #1066: [CALCITE-2843] Babel parser should support PostgreSQL casting operator '::'
URL: https://github.com/apache/calcite/pull/1066#discussion_r288966686
 
 

 ##########
 File path: babel/src/main/codegen/config.fmpp
 ##########
 @@ -857,6 +858,16 @@ data: {
       dropStatementParserMethods: [
       ]
 
+      # Binary operators tokens
+      binaryOperatorsTokens: [
+        {name: "PG_CAST", symbol: "::"}
+      ]
+
+      # Binary operators initialization
+      extraExpressions: [
+        "op = PostgreSQLCasting(list, exprContext)"
+      ]
 
 Review comment:
   Should we need to extend this ? The keyword "name", "symbol" or "exprContext" seems too context relevant. Such keywords should not appears in this config template.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services