snuyanzin commented on code in PR #28277:
URL: https://github.com/apache/flink/pull/28277#discussion_r3324089142
##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/materializedtable/AbstractCreateMaterializedTableConverter.java:
##########
@@ -141,10 +141,20 @@ protected final RefreshMode
getDerivedRefreshMode(LogicalRefreshMode logicalRefr
return
MaterializedTableUtils.fromLogicalRefreshModeToRefreshMode(logicalRefreshMode);
}
+ /**
+ * Returns the {@code AS} query exactly as the user wrote it.
+ *
+ * <p>The query text is sliced out of the original sql statement using the
parser position
+ * recorded on the {@link SqlNode}. This avoids the loss of formatting and
identifier casing
+ * that would otherwise occur if the query were re-rendered from the
parsed tree (e.g. {@code
+ * int} would be normalized to {@code INTEGER}).
+ *
+ * <p>If the raw sql string cannot be fetched it fals back to the quoted
sql string.
Review Comment:
```suggestion
* <p>If the raw sql string cannot be fetched it falls back to the
quoted sql string.
```
--
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]