[
https://issues.apache.org/jira/browse/CALCITE-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16585616#comment-16585616
]
Volodymyr Vysotskyi commented on CALCITE-2440:
----------------------------------------------
I think the problem is that one of the rules which convert rel nodes to
required implementation with required trait set cannot be applied. I would
recommend revising all rules which create rel nodes that are available in the
resulting plan (before Calcite upgrade) and check if one of the rules is not
applied.
I assume you have a rule which expects {{Correlate -> Uncollect -> Project}}
section of the tree, but tree contains {{Project}} after {{Correlate}} and
before {{Uncollect}}.
> SQL with UNNEST fail in volcano planner in some cases
> -----------------------------------------------------
>
> Key: CALCITE-2440
> URL: https://issues.apache.org/jira/browse/CALCITE-2440
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.17.0
> Reporter: Shuyi Chen
> Assignee: Julian Hyde
> Priority: Major
>
> After [CALCITE-2291|https://issues.apache.org/jira/browse/CALCITE-2291],
> specifically, [this
> line|https://github.com/apache/calcite/blob/7088dc7261d294b7c6d5c9f4463435e95f0b9c15/core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java#L1952]
> causes volcano planner to fail to find the best plan for query
> {code:java}
> SELECT a, s FROM T, UNNEST(T.c) as A (s)
> {code}
> . I'll try to write a unittest in Calcite to reproduce. [~cshi] [~vvysotskyi]
> [~HanumathRao], can you provide some context? Thanks a lot.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)