Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The goal of this JIRA is to generate a logical plan for the following query:
SELECT *
FROM TABLE(TUMBLE(
TABLE ORDERS,
INTERVAL '10' MINUTE))
This SQL query does not have DESCRIPTOR included, which is being tracked and discussed by CALCITE-3339.
I expect we should generate a logical plan from this query that is similar to the following:
LogicalProject(ROWTIME=[$0], ID=[$1], PRODUCT=[$2], UNITS=[$3], wstart=[$4], wend=[$5]) LogicalTableFunctionScan(invocation=[TUMBLE($3, 60000:INTERVAL MINUTE)], rowType=[RecordType(TIMESTAMP(0) ROWTIME, INTEGER ID, VARCHAR(10) PRODUCT, INTEGER UNITS, TIMESTAMP(0) wstart, TIMESTAMP(0) wend)]) LogicalProject(ROWTIME=[$0], ID=[$1], PRODUCT=[$2], UNITS=[$3]) LogicalTableScan(table=[[ORINOCO, ORDERS]])
Attachments
Issue Links
- blocks
-
CALCITE-3272 TUMBLE Table-valued Function
- Closed
- is blocked by
-
CALCITE-3382 Rename current TUMBLE to "$TUMBLE" and add TUMBLE to Parser
- Closed
-
CALCITE-3418 Grouped Window Function TUMBLE should return "$TUMBLE" as its operator name
- Closed
- links to