Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/20382#discussion_r164930523
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/ConsoleWriter.scala
---
@@ -56,7 +58,7 @@ trait ConsoleWriter extends Logging {
println("-------------------------------------------")
// scalastyle:off println
spark
- .createDataFrame(spark.sparkContext.parallelize(rows), schema)
+ .createDataFrame(rows.toList.asJava, schema)
--- End diff --
this fix should go into 2.3 branch. thanks for catching this.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]