lincoln-lil commented on code in PR #22881:
URL: https://github.com/apache/flink/pull/22881#discussion_r1244644095
##########
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 impact of this change is limited to the sql to operation conversion, and
will not affect the planner’s own dialect-related configuration
--
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]