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_r291792271
 
 

 ##########
 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:
   These parse block hooks are not necessary, if you want to add a new sql 
function parse, extend the expression parse block. See 
https://github.com/apache/calcite/commit/7f33215ffaf9c0b8f4bef082913c910c77bf4427
 for reference.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to