@@ -49,7 +49,7 @@ protected Frameworks.ConfigBuilder config(CalciteAssert.SchemaSpec... schemaSpec
4949 // Add an empty table with name DEPT for test purpose
5050 ImmutableList <Object []> rows =
5151 ImmutableList .of (
52- new Object [] {10 , ImmutableList .of (7369 , "ALLEN " ), "SMITH" , 7369 },
52+ new Object [] {10 , ImmutableList .of (7369 , "SMITH " ), "SMITH" , 7369 },
5353 new Object [] {20 , ImmutableList .of (7499 , "ALLEN" ), "ALLEN" , 7499 },
5454 new Object [] {30 , ImmutableList .of (7521 , "WARD" ), "WARD" , 7521 });
5555 schema .add ("DEPT" , new TableWithStruct (rows ));
@@ -73,7 +73,7 @@ public void testFlatten() {
7373 "SELECT `DEPTNO`, `EMP`, `EMP.EMPNAME` `EMPNAME`, `EMP.EMPNO` `EMPNO`\n FROM `scott`.`DEPT`" ;
7474 verifyPPLToSparkSQL (root , expectedSparkSql );
7575 String expectedResult =
76- "DEPTNO=10; EMP={7369, ALLEN }; EMPNAME=SMITH; EMPNO=7369\n "
76+ "DEPTNO=10; EMP={7369, SMITH }; EMPNAME=SMITH; EMPNO=7369\n "
7777 + "DEPTNO=20; EMP={7499, ALLEN}; EMPNAME=ALLEN; EMPNO=7499\n "
7878 + "DEPTNO=30; EMP={7521, WARD}; EMPNAME=WARD; EMPNO=7521\n " ;
7979 verifyResult (root , expectedResult );
@@ -91,7 +91,7 @@ public void testFlattenWithAliases() {
9191 "SELECT `DEPTNO`, `EMP`, `EMP.EMPNAME` `name`, `EMP.EMPNO` `number`\n FROM `scott`.`DEPT`" ;
9292 verifyPPLToSparkSQL (root , expectedSparkSql );
9393 String expectedResult =
94- "DEPTNO=10; EMP={7369, ALLEN }; name=SMITH; number=7369\n "
94+ "DEPTNO=10; EMP={7369, SMITH }; name=SMITH; number=7369\n "
9595 + "DEPTNO=20; EMP={7499, ALLEN}; name=ALLEN; number=7499\n "
9696 + "DEPTNO=30; EMP={7521, WARD}; name=WARD; number=7521\n " ;
9797 verifyResult (root , expectedResult );
@@ -109,7 +109,7 @@ public void testProject() {
109109 "LogicalProject(DEPTNO=[$0], EMP=[$1])\n LogicalTableScan(table=[[scott, DEPT]])\n " ;
110110 verifyLogical (root , expectedLogical );
111111 String expectedResult =
112- "DEPTNO=10; EMP={7369, ALLEN }\n "
112+ "DEPTNO=10; EMP={7369, SMITH }\n "
113113 + "DEPTNO=20; EMP={7499, ALLEN}\n "
114114 + "DEPTNO=30; EMP={7521, WARD}\n " ;
115115 verifyResult (root , expectedResult );
0 commit comments