gustavodemorais commented on code in PR #26703:
URL: https://github.com/apache/flink/pull/26703#discussion_r2157538489
##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/RelTimeIndicatorConverter.java:
##########
@@ -521,6 +520,57 @@ private RelNode
visitWindowTableAggregate(FlinkLogicalWindowTableAggregate table
tableAgg.getNamedProperties());
}
+ private RelNode visitMultiJoin(FlinkLogicalMultiJoin multiJoin) {
+ // visit and materialize children
+ final List<RelNode> newInputs =
+ multiJoin.getInputs().stream()
+ .map(input -> input.accept(this))
+ .map(this::materializeTimeIndicators)
+ .collect(Collectors.toList());
+
+ final List<RelDataTypeField> allFields =
+ newInputs.stream()
+ .flatMap(input ->
input.getRowType().getFieldList().stream())
+ .collect(Collectors.toList());
+
+ final RexShuttle shuttle =
+ new RexShuttle() {
+ @Override
+ public RexNode visitInputRef(RexInputRef inputRef) {
+ if (isTimeIndicatorType(inputRef.getType())) {
+ return RexInputRef.of(inputRef.getIndex(),
allFields);
+ } else {
+ return super.visitInputRef(inputRef);
+ }
+ }
+ };
+
+ final RexNode newJoinFilter =
multiJoin.getJoinFilter().accept(shuttle);
Review Comment:
Same as above
https://github.com/apache/flink/pull/26703/commits/70edb6e7616dea8266d49fe520bd52938917369c
--
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]