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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -297,4 +297,32 @@ public void testSumCountDistinctCityJoinGroupBy() throws Exception
assertTablesEqual( "emps-depts-sum-count-groupby",
"select emps.deptno, sum( emps.age ) as s1, count( distinct emps.city ) as c1 from sales.emps, sales.depts where emps.deptno = depts.deptno group by emps.deptno" );
}

@Test
public void testPlannerArrayNotImplemented() throws Exception
{
String query = "SELECT p0.city, p1.city, p1.empno, p0.empno " +
"FROM sales.emps AS p0 " +
"INNER JOIN sales.emps AS p1 ON (p1.gender = 'M' ) " +
"LEFT JOIN sales.emps AS p2 ON (p2.gender = 'M' " +
"AND p2.empno = p1.empno " +
"AND ( NOT(CASE WHEN (p0.age IS NOT NULL OR p2.age IS NOT NULL ) " +
"THEN p0.age IS NOT NULL " +
"AND p2.age IS NOT NULL " +
"AND p0.age = p2.age " +
"AND p0.city = p2.city " +
"WHEN (p0.name IS NULL " +
"OR p0.name = 'Bob' ) " +
"AND (p2.name IS NULL " +
"OR p2.name = 'Bob' ) " +
"THEN p0.city = p2.city " +
"WHEN p0.name = p2.name " +
"AND p0.city = p2.city " +
"THEN 1=1 END))) " +
"WHERE p0.gender = 'M' " +
"AND p2.city IS NULL";

assertTablesEqual( "emps-planner-array-not-implemented", query );
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CITY:string,CITY0:string,EMPNO:int,EMPNO0:int