Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/3715#discussion_r125421732 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/rules/datastream/DataStreamWindowJoinRule.scala --- @@ -20,28 +20,60 @@ package org.apache.flink.table.plan.rules.datastream import org.apache.calcite.plan.{RelOptRule, RelOptRuleCall, RelTraitSet} import org.apache.calcite.rel.RelNode +import org.apache.calcite.rel.`type`.RelDataType import org.apache.calcite.rel.convert.ConverterRule +import org.apache.calcite.rex.RexNode +import org.apache.flink.table.api.{TableConfig, TableException} import org.apache.flink.table.plan.nodes.FlinkConventions -import org.apache.flink.table.plan.nodes.datastream.DataStreamRowStreamJoin +import org.apache.flink.table.plan.nodes.datastream.DataStreamWindowJoin import org.apache.flink.table.plan.nodes.logical.FlinkLogicalJoin import org.apache.flink.table.plan.schema.RowSchema -import org.apache.flink.table.runtime.join.JoinUtil +import org.apache.flink.table.runtime.join.WindowJoinUtil -class DataStreamRowStreamJoinRule +class DataStreamWindowJoinRule extends ConverterRule( classOf[FlinkLogicalJoin], FlinkConventions.LOGICAL, FlinkConventions.DATASTREAM, "DataStreamJoinRule") { + /** Time indicator type **/ + private var timeType: RelDataType = _ --- End diff -- I'm not sure if we can store these values as local variables. It kind assumes that the rule is called in a certain way (first check `matches()` and immediately after that `convert()`. The rule might also be called concurrently from different threads. I'd rather run the same analysis again in `convert()`.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---