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

Timo Walther commented on FLINK-22804:
--------------------------------------

Hi [~yulei0824], a view is always backed by a query. And a query has no 
computed or metadata columns anymore but only physical columns. What you are 
looking for is some utility that tracks the view columns to their origin but 
this can be quite difficult for complex queries. I will close this issue for 
now.

> "CREATE VIEW" statement loses computed columns, metadata columns, watermark 
> and table constraint
> ------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-22804
>                 URL: https://issues.apache.org/jira/browse/FLINK-22804
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Legacy Planner, Table SQL / Planner
>    Affects Versions: 1.13.0, 1.12.3
>            Reporter: tim yu
>            Priority: Major
>
> Lose computed columns, metadata columns, watermark and table constraint when 
> SqlToOperationConverter converts SqlCreateView to CreateViewOperation.



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

Reply via email to