Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.30.0
Description
The sql from CALCITE-5048
select * from emp order by ename limit 1 offset ?
RelMdRowCount#getRowCount will return 14d, because it always return rowCount when offset is dynamic.
if (rel.offset instanceof RexDynamicParam) { return rowCount; }
Obviously, rowCount will not exceed 1 because LIMIT 1. We can improve it.
Attachments
Issue Links
- is related to
-
CALCITE-5048 Query with parameterized LIMIT and correlated sub-query throws AssertionError "not a literal"
- Closed
- links to