Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Planner throws exception about Node ARRAY that could not be implemented #2

Open
wants to merge 1 commit into
base: wip-1.0
Choose a base branch
from

Conversation

rdelbru
Copy link

@rdelbru rdelbru commented May 16, 2013

A second issue I have encountered. This one seems to come from the eigenbase RelOptPlanner (see part of the stack trace below).
Attached a unit test that exposes the problem (the SQL query in the test does not have much sense per se, but it demonstrates the problem).

org.eigenbase.relopt.RelOptPlanner$CannotPlanException: Node [rel#54:Subset#4.ARRAY] could not be implemented; planner state:

Root: rel#54:Subset#4.ARRAY
Original rel:
AbstractConverter(subset=[rel#54:Subset#4.ARRAY], convention=[ARRAY])
  ProjectRel(subset=[rel#49:Subset#4.NONE], CITY=[$4], CITY0=[$14], EMPNO=[$10], EMPNO0=[$0])
    FilterRel(subset=[rel#47:Subset#3.NONE], condition=[AND(=($3, CAST('M'):JavaType(class java.lang.String) NOT NULL), IS NULL($24))])
      JoinRel(subset=[rel#45:Subset#2.NONE], condition=[AND(AND(=($23, CAST('M'):JavaType(class java.lang.String) NOT NULL), =($20, $10)), NOT(CASE(OR(IS NOT NULL($6), IS NOT NULL($26)), AND(AND(AND(IS NOT NULL($6), IS NOT NULL($26)), =($6, $26)), =($4, $24)), AND(OR(IS NULL($1), =($1, CAST('Bob'):JavaType(class java.lang.String) NOT NULL)), OR(IS NULL($21), =($21, CAST('Bob'):JavaType(class java.lang.String) NOT NULL))), =($4, $24), AND(=($1, $21), =($4, $24)), CAST(=(1, 1)):BOOLEAN, null)))], joinType=[left])
        JoinRel(subset=[rel#43:Subset#1.NONE], condition=[=($13, CAST('M'):JavaType(class java.lang.String) NOT NULL)], joinType=[inner])
          CascadingTableAccessRel(subset=[rel#41:Subset#0.CASCADING], table=[[SALES, EMPS]])
          CascadingTableAccessRel(subset=[rel#41:Subset#0.CASCADING], table=[[SALES, EMPS]])
        CascadingTableAccessRel(subset=[rel#41:Subset#0.CASCADING], table=[[SALES, EMPS]])

@cwensel
Copy link
Member

cwensel commented Sep 13, 2013

ok, as of the current wip this still throws a

org.eigenbase.relopt.RelOptPlanner$CannotPlanException: Node [rel#54:Subset#4.ENUMERABLE.[]] could not be implemented; planner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants