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|
   +----+----+
   ```
   
   ```scala
   scala> spark.version
   res0: String = 2.4.7
   
   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:
[email protected]



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

Reply via email to