[ 
https://issues.apache.org/jira/browse/CALCITE-2817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16759110#comment-16759110
 ] 

Vladimir Sitnikov commented on CALCITE-2817:
--------------------------------------------

In the above sample, the exception means original node 
DrillJoinRel(condition=[true], joinType=[inner]) is not implementable.
Which makes sense since Drill can't perform cartesian joins.

In fact, the true cause of the exception is "there's not enough rules" to 
identify that the join is not a cartesian one (e.g. push Filters above into the 
join).

Note: the exception above was produced when MultiJoin-related optimizations 
were disabled in Drill.

> Make CannotPlanException great
> ------------------------------
>
>                 Key: CALCITE-2817
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2817
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.18.0
>            Reporter: Vladimir Sitnikov
>            Assignee: Julian Hyde
>            Priority: Major
>
> 1) Empty subsets are the typical offenders for CannotPlan, so identify them 
> and print before printing the planner dump
> 2) Print Graphviz-compatible output as well so the output is easier to 
> understand



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to