Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
For The sql:
select * from emp tablesample bernoulli(0) where empno > 5
The plan is :
LogicalProject(EMPNO=[$0], ENAME=[$1], JOB=[$2], MGR=[$3], HIREDATE=[$4], SAL=[$5], COMM=[$6], DEPTNO=[$7], SLACKER=[$8]) LogicalFilter(condition=[>($0, 5)]) LogicalTableScan(table=[[CATALOG, SALES, EMP]])
I think the correct result of above SQL is empty.
But its result is the following SQL result:
select * from emp where empno > 5
It's an incorrect result
Attachments
Attachments
Issue Links
- blocks
-
CALCITE-5906 JDBC adapter should generate TABLESAMPLE
- Closed
- relates to
-
CALCITE-5916 In RelBuilder, add sample() method (equivalent to SQL TABLESAMPLE clause)
- Closed
-
CALCITE-5912 Add an implementation of TABLESAMPLE in Enumerable convention
- In Progress
- links to