Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/1981#discussion_r63253874
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/nodes/dataset/DataSetJoin.scala
---
@@ -159,9 +158,20 @@ class DataSetJoin(
val leftDataSet =
left.asInstanceOf[DataSetRel].translateToPlan(tableEnv)
val rightDataSet =
right.asInstanceOf[DataSetRel].translateToPlan(tableEnv)
+ val (joinOperator, nullCheck) = joinType match {
+ case JoinRelType.INNER => (leftDataSet.join(rightDataSet), false)
+ case JoinRelType.LEFT => (leftDataSet.leftOuterJoin(rightDataSet),
true)
+ case JoinRelType.RIGHT => (leftDataSet.rightOuterJoin(rightDataSet),
true)
+ case JoinRelType.FULL => (leftDataSet.fullOuterJoin(rightDataSet),
true)
+ }
+
+ if (nullCheck && !config.getNullCheck) {
+ throw new TableException("Null check in TableEnvironment must be
enabled for outer joins.")
--- End diff --
TableEnvironment should be TableConfig
---
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 [email protected] or file a JIRA ticket
with INFRA.
---