Ramin Gharib created FLINK-39887:
------------------------------------
Summary: Use validated query node as a fallback when parsing the
raw asQuery fails
Key: FLINK-39887
URL: https://issues.apache.org/jira/browse/FLINK-39887
Project: Flink
Issue Type: Bug
Components: Table SQL / Planner
Reporter: Ramin Gharib
Assignee: Ramin Gharib
validate(asQuery) may mutate asQuery. In the fallback path (no statement text
available), orElse(context.toQuotedSqlString(asQuery)) can therefore serialize
a mutated node. Prefer using the validated node (or snapshotting the quoted SQL
before validation) to keep the fallback deterministic.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)