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

Arvid Heise resolved FLINK-41436.
---------------------------------
    Fix Version/s: 2.4.0
       Resolution: Fixed

Merged into master as e47e2a9.

> Planning time grows exponentially with the depth of nested catalog views 
> because CatalogManager re-parses unresolved views on every lookup
> ------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-41436
>                 URL: https://issues.apache.org/jira/browse/FLINK-41436
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Planner
>    Affects Versions: 2.3.0
>            Reporter: Arvid Heise
>            Assignee: Arvid Heise
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.4.0
>
>
> since FLINK-37098 (https://issues.apache.org/jira/browse/FLINK-37098) "Can 
> not select time attribute from a view", resolveCatalogView parses and 
> converts the view body on every lookup. Calcite looks up each identifier more 
> than once, and each nested view is resolved the same way, so cost compounds 
> per level. Catalogs that store ResolvedCatalogView are not affected; every 
> catalog that rebuilds views from stored text is.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to