Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.34.0
Description
A LEFT SEMI JOIN can only return columns from the left-hand table.
But calcite also return both left-hand and right-hand table columns.
In select.iq
# LEFT SEMI JOIN (Hive only) SELECT * FROM emp LEFT SEMI JOIN dept ON emp.deptno = dept.deptno; SELECT "EMP"."EMPNO", "EMP"."ENAME", "EMP"."JOB", "EMP"."MGR", "EMP"."HIREDATE", "EMP"."SAL", "EMP"."COMM", "EMP"."DEPTNO", "DEPT"."DEPTNO" AS "DEPTNO0", "DEPT"."DNAME", "DEPT"."LOC" FROM "scott"."EMP" AS "EMP" LEFT SEMI JOIN "scott"."DEPT" AS "DEPT" ON "EMP"."DEPTNO" = "DEPT"."DEPTNO" !explain-validated-on hive
Attachments
Issue Links
- fixes
-
CALCITE-2304 In Babel parser, allow Hive-style syntax "LEFT SEMI JOIN"
- Closed
- links to