Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
In the AuxiliaryConverter implementation, SESSION_END() is transformed to a RexInputRef, as the same as SESSION_START(). By doing so, it cannot restored when generating physical plan because it cannot be differentiated which RexInputRef is session start, and which RexInputRef is session end.
Ideally, during toRel, SESSION_END can be kept as a RexCall with function information in it. So in the following step, the RexCall can be replaced as a correct input reference to GROUP BY's field.
Attachments
Issue Links
- blocks
-
BEAM-5843 Expand Grouped Window Functions to window_start and window_end in Aggregation
- Resolved
- is duplicated by
-
CALCITE-3472 SESSION_END returns same value as SESSION_START
- Closed