Skip to content

Commit

Permalink
change self
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiXinXiaoLei committed May 16, 2016
1 parent 3b5eb9b commit e756a0a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class QueryExecution(val sparkSession: SparkSession, val logical: LogicalPlan) {
*/
def hiveResultString(): Seq[String] = executedPlan match {
case ExecutedCommandExec(desc: DescribeTableCommand) =>
SQLExecution.withNewExecutionId(self, this) {
SQLExecution.withNewExecutionId(sparkSession, this) {
// If it is a describe command for a Hive table, we want to have the output format
// be similar with Hive.
desc.run(sparkSession).map {
Expand All @@ -122,11 +122,11 @@ class QueryExecution(val sparkSession: SparkSession, val logical: LogicalPlan) {
}
}
case command: ExecutedCommandExec =>
SQLExecution.withNewExecutionId(self, this) {
SQLExecution.withNewExecutionId(sparkSession, this) {
command.executeCollect().map(_.getString(0))
}
case other =>
SQLExecution.withNewExecutionId(self, this) {
SQLExecution.withNewExecutionId(sparkSession, this) {
val result: Seq[Seq[Any]] = other.executeCollectPublic().map(_.toSeq).toSeq
// We need the types so we can output struct field names
val types = analyzed.output.map(_.dataType)
Expand Down

0 comments on commit e756a0a

Please sign in to comment.