Hi all, I am on flink 1.12.3. I am trying to get a tumbling window work with the table API as documented here:
https://ci.apache.org/projects/flink/flink-docs-master/docs/dev/table/sql/queries/window-tvf/#tumble I have a kafka topic as a flink source. I convert the stream into a table using the StreamTableEnvironment#fromDataStream method. Then, once the table is registered in. I attempt to execute this table api
SQL: SELECT window_start, window_end, avg(state_ts) FROM TABLE(TUMBLE(TABLE lead_buffer, DESCRIPTOR(proctime), INTERVAL '1' MINUTES))
GROUP BY window_start, window_end However, this exception is thrown: Caused by: org.apache.calcite.plan.RelOptPlanner$CannotPlanException: There are not enough rules to produce a node with desired properties: convention=STREAM_PHYSICAL, FlinkRelDistributionTraitDef=any,
MiniBatchIntervalTraitDef=None: 0, ModifyKindSetTraitDef=[NONE], UpdateKindTraitDef=[NONE] Does anyone have any idea about what I might be doing wrong here?
Thanks, Joe |
- Table API Throws Calcite Exception CannotPlanException Wh... Joseph Lorenzini