Krisztian Kasa created CALCITE-6513:
---------------------------------------

             Summary: FilterProjectTransposeRule may cause OOM when Project 
expressions are complex
                 Key: CALCITE-6513
                 URL: https://issues.apache.org/jira/browse/CALCITE-6513
             Project: Calcite
          Issue Type: Bug
          Components: core
            Reporter: Krisztian Kasa
            Assignee: Krisztian Kasa


CALCITE-3774 addresses preventing merging projects when the resulting 
expressions in the merged project are too complex and lead to slow compilation 
or out of memory.

However, when there is a {{Filter}} on top of the {{Projects}} with a predicate 
referencing the complex expressions {{FilterProjectTransposeRule}} tries to 
push down the {{Filter}} below the bottom {{Project}} merging the expressions 
and causing OOM.

The issue was initially reproduced using Hive with the Hive version of 
{{FilterProjectTransposeRule}}. See: HIVE-28264

Calcite is also affected: 
[https://github.com/kasakrisz/calcite/commit/b35a02f368624a9c4768f348cd072a95ed6de3e1]




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to