[ 
https://issues.apache.org/jira/browse/FLINK-39887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18090144#comment-18090144
 ] 

Sergey Nuyanzin commented on FLINK-39887:
-----------------------------------------

closed

> 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
>            Priority: Minor
>
> -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)

Reply via email to