We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f3175 commit 184c594Copy full SHA for 184c594
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
@@ -377,7 +377,7 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
377
command.executeCollect().map(_.head.toString)
378
379
case other =>
380
- val result: Seq[Seq[Any]] = toRdd.map(_.copy()).collect().toSeq
+ val result: Seq[Seq[Any]] = other.executeCollect().toSeq
381
// We need the types so we can output struct field names
382
val types = analyzed.output.map(_.dataType)
383
// Reformat to match hive tab delimited output.
0 commit comments