danny0405 opened a new pull request #10680: [FLINK-15125][table-planner-blink] 
PROCTIME() computed column defined…
URL: https://github.com/apache/flink/pull/10680
 
 
   … in CREATE TABLE doesn't work
   
   ## What is the purpose of the change
   
   Fix the support of `PROCTIME` window grouping for blink-planner.
   
   ## Brief change log
   
   Add a rewrite logic for `LogicalWindowAggregateRuleBase` to change plan with 
pattern
   ```xml
   LogicalProject($f0=[TUMBLE(PROCTIME(), 1000:INTERVAL SECOND)], a=[$0], 
b=[$1])
        +- LogicalTableScan
   ```
   to
   ```xml
   LogicalProject($f0=[TUMBLE($2, 1000:INTERVAL SECOND)], a=[$0], b=[$1])
      +- LogicalProject(a=[$0], b=[$1], $f2=[PROCTIME()])
      +- LogicalTableScan
   ```
   in order to simplify the subsequent rewrite.
   
   ## Verifying this change
   
   See tests in CatalogTableITCase.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to