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

    https://github.com/apache/spark/pull/17400#discussion_r211561522
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/EnsureRequirements.scala
 ---
    @@ -321,6 +321,58 @@ case class EnsureRequirements(conf: SQLConf) extends 
Rule[SparkPlan] {
         }
       }
     
    +  private def updatePartitioningByAliases(exprs: Seq[NamedExpression], 
partioning: Partitioning)
    +    : Partitioning = {
    +    val aliasSeq = exprs.flatMap(_.collectFirst {
    --- End diff --
    
    This pr only focuses on aliases, so the point you described above is 
out-of-scope in this pr. IMO more complicated cases should be fixed in 
follow-ups.


---

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

Reply via email to