Arvid Heise created FLINK-41436:
-----------------------------------

             Summary: 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


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