Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.32.0
Description
If Sort rel node used dynamic param, RelFieldTrimmer can not trim fields as expected.
The behavior makes ProjectableFilterableTable can not get correct projects.
Related code:
// org.apache.calcite.sql2rel.RelFieldTrimmer#trimFields(org.apache.calcite.rel.core.Sort, org.apache.calcite.util.ImmutableBitSet, java.util.Set<org.apache.calcite.rel.type.RelDataTypeField>) // leave the Sort unchanged in case we have dynamic limits if (sort.offset instanceof RexDynamicParam || sort.fetch instanceof RexDynamicParam) { return result(sort, inputMapping); }
I think we can support dynamic param without breaking anything.
Attachments
Issue Links
- relates to
-
IGNITE-18311 AssertionError in SQL on subquery with offset and limit
- Resolved
- links to