You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/09/17 18:31:27 UTC

[GitHub] [spark] dongjoon-hyun edited a comment on pull request #29771: [SPARK-32635][SQL] Fix foldable propagation

dongjoon-hyun edited a comment on pull request #29771:
URL: https://github.com/apache/spark/pull/29771#issuecomment-694419724


   Ur, @peter-toth . Could you check the PR description once more?
   ```scala
   scala> spark.version
   res1: String = 3.0.1
   
   scala> :paste
   // Entering paste mode (ctrl-D to finish)
   
   val a = Seq("1").toDF("col1").withColumn("col2", lit("1"))
   val b = Seq("2").toDF("col1").withColumn("col2", lit("2"))
   val aub = a.union(b)
   val c = aub.filter($"col1" === "2").cache()
   val d = Seq("2").toDF( "col4")
   val r = d.join(aub, $"col2" === $"col4").select("col4")
   val l = c.select("col2")
   val df = l.join(r, $"col2" === $"col4", "LeftOuter")
   df.show()
   
   // Exiting paste mode, now interpreting.
   
   +----+----+
   |col2|col4|
   +----+----+
   |   2|   2|
   +----+----+
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org