[jira] [Created] (FLINK-14323) Serialize Expression to String and parse String to Expression

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-14323) Serialize Expression to String and parse String to Expression

Shang Yuanchun (Jira)
Jark Wu created FLINK-14323:
-------------------------------

             Summary: Serialize Expression to String and parse String to Expression
                 Key: FLINK-14323
                 URL: https://issues.apache.org/jira/browse/FLINK-14323
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / API, Table SQL / Planner
            Reporter: Jark Wu


In order to persist/store the watermark strategy expression (and the future computed column expression), we should find a way to serialize Expression to String and parse String back to Expression.

More details can be discussed under this JIRA issue, and this may need another FLIP.

There are two ways:
1) introduce a {{SqlExpression}} which wraps the raw SQL string and resolved DataType. Only implement the asSerializableString for {{SqlExpression}}.
2) support all of the ResolvedExpressions’ asSerializableString.





--
This message was sent by Atlassian Jira
(v8.3.4#803005)