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

    https://github.com/apache/spark/pull/13977#discussion_r69010595
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
 ---
    @@ -1836,13 +1836,15 @@ class Analyzer(
       }
     
       private def commonNaturalJoinProcessing(
    -     left: LogicalPlan,
    -     right: LogicalPlan,
    -     joinType: JoinType,
    -     joinNames: Seq[String],
    -     condition: Option[Expression]) = {
    -    val leftKeys = joinNames.map(keyName => left.output.find(_.name == 
keyName).get)
    -    val rightKeys = joinNames.map(keyName => right.output.find(_.name == 
keyName).get)
    +      left: LogicalPlan,
    +      right: LogicalPlan,
    +      joinType: JoinType,
    +      joinNames: Seq[String],
    +      condition: Option[Expression]) = {
    +    val leftKeys =
    --- End diff --
    
    
https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala#L1825
 will make sure that it will not be None after this issue is fixed. I can add 
an assert. 


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to