[ 
https://issues.apache.org/jira/browse/FLINK-18111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flink Jira Bot updated FLINK-18111:
-----------------------------------
      Labels: auto-deprioritized-major auto-deprioritized-minor  (was: 
auto-deprioritized-major stale-minor)
    Priority: Not a Priority  (was: Minor)

This issue was labeled "stale-minor" 7 days ago and has not received any 
updates so it is being deprioritized. If this ticket is actually Minor, please 
raise the priority and ask a committer to assign you the issue or revive the 
public discussion.


> LATERAL query failed when use create view syntax
> ------------------------------------------------
>
>                 Key: FLINK-18111
>                 URL: https://issues.apache.org/jira/browse/FLINK-18111
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API
>    Affects Versions: 1.11.0
>            Reporter: YufeiLiu
>            Priority: Not a Priority
>              Labels: auto-deprioritized-major, auto-deprioritized-minor
>
> When execute sql like this will throw exception 
> "org.apache.calcite.sql.validate.SqlValidatorException: Column 'c1' not found 
> in any table":
> {code:SQL}
> CREATE VIEW my_view AS SELECT T.a, T.b FROM source, LATERAL 
> TABLE(MY_TABLE_FUNCTION(`c1`)) AS T(`a`, `b`)
> {code}
> Because of in {{SqlToOperationConverter#convertCreateView}} unparse SqlNode 
> to sql string after validate, but the LATERAL keyword was missing at this 
> point. Plus {{SqlNode validateQuery = flinkPlanner.validate(query)}}, query 
> == validateQuery.
> I think we could use original sql to build {{CatalogViewImpl}}, they have the 
> same functionality.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to