Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3673#discussion_r116250994
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/nodes/logical/FlinkLogicalJoin.scala
 ---
    @@ -77,7 +77,9 @@ private class FlinkLogicalJoinConverter
         val join: LogicalJoin = call.rel(0).asInstanceOf[LogicalJoin]
         val joinInfo = join.analyzeCondition
     
    -    hasEqualityPredicates(join, joinInfo) || isSingleRowInnerJoin(join)
    +    (hasEqualityPredicates(join, joinInfo)
    +      || isSingleRowInnerJoin(join)
    +      || isOuterJoinWithSingleRowAtOuterSide(join, joinInfo))
    --- End diff --
    
    We need here the same condition as in `DataSetSingleRowJoinRule.matches()`:
    
    ```
    join.getJoinType match {
      case JoinRelType.INNER if isSingleRow(join.getRight) || 
isSingleRow(join.getLeft) => true
      case JoinRelType.LEFT if isSingleRow(join.getRight) => true
      case JoinRelType.RIGHT if isSingleRow(join.getLeft) => true
     case _ => false
    }
    ```


---
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.
---

Reply via email to