swuferhong commented on code in PR #22881:
URL: https://github.com/apache/flink/pull/22881#discussion_r1244615225


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeConvertContext.java:
##########
@@ -60,7 +60,9 @@ public RelRoot toRelRoot(SqlNode sqlNode) {
     public String toQuotedSqlString(SqlNode sqlNode) {
         SqlParser.Config parserConfig = 
flinkPlanner.config().getParserConfig();
         SqlDialect dialect =
-                new CalciteSqlDialect(
+                // The default implementation of SqlDialect suppresses all 
table hints since
+                // CALCITE-4640, so we should use AnsiSqlDialect instead to 
reserve table hints.
+                new AnsiSqlDialect(

Review Comment:
   The difference between `CalciteSqlDialect` and `AntiSqlDialect` is the 
method `withIdentifierQuoteString()`. Would replacing `\"`  to ```  have any 
other impact in Flink? 



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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to