Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Current implementation of RelMdCollation#project doesn't handle function expressions and because of that we loose any collation metadata related to monotonic expressions which can be useful for generating streaming query execution plans involving tumbling windows.
Following is how current code looks like (RelMdCollation):
185: for (Ord<RexNode> project : Ord.zip(projects)) {
186: if (project.e instanceof RexInputRef)
189: }
We only handle projects of type RexInputRef. But to support monotonic expressions we should laso handle projects of type RexCall.
Attachments
Attachments
Issue Links
- incorporates
-
CALCITE-742 RelFieldTrimmer throws NoSuchElementException in some cases
- Closed
- is blocked by
-
CALCITE-784 LogicalAggregate's create method discards any collation traits from input
- Closed