gustavodemorais commented on code in PR #30016:
URL: https://github.com/apache/flink/pull/30016#discussion_r4633730740
##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/RelTimeIndicatorConverter.java:
##########
@@ -441,6 +445,23 @@ private RelNode visitCorrelate(FlinkLogicalCorrelate
correlate) {
correlate.getJoinType());
}
+ private RelNode visitTableFunctionScan(FlinkLogicalTableFunctionScan scan)
{
+ final RelNode newScan = visitSimpleRel(scan);
+ final FunctionDefinition definition =
+ ShortcutUtils.unwrapFunctionDefinition(scan.getCall());
+ if (definition == null
+ || definition.getKind() != FunctionKind.PROCESS_TABLE
+ || !gatherProcTimeIndices(scan).isEmpty()) {
+ return newScan;
+ }
+ // Proctime is only computed on access, so a PTF that does not forward
it needs its value
+ final List<RelNode> newInputs =
+ newScan.getInputs().stream()
+ .map(this::materializeProcTime)
+ .collect(Collectors.toList());
+ return newScan.copy(newScan.getTraitSet(), newInputs);
Review Comment:
Good point. The `RexTableArgCall` type is now updated from the materialized
input, keeping its field names
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]