aboutsummaryrefslogtreecommitdiff
path: root/sql/hive-thriftserver/src
diff options
context:
space:
mode:
authorCheng Lian <lian@databricks.com>2014-11-10 16:56:36 -0800
committerPatrick Wendell <pwendell@gmail.com>2014-11-28 12:00:05 -0500
commit7fa5fff29881421ef5da0ac3c254611b2318be00 (patch)
tree28312fc34ef9a6709e77cbe0ed7649b87573e0a1 /sql/hive-thriftserver/src
parente9244263c97b61560e30dcb997df4bf074299085 (diff)
downloadspark-7fa5fff29881421ef5da0ac3c254611b2318be00.tar.gz
spark-7fa5fff29881421ef5da0ac3c254611b2318be00.tar.bz2
spark-7fa5fff29881421ef5da0ac3c254611b2318be00.zip
[SPARK-4308][SQL] Sets SQL operation state to ERROR when exception is thrown
In `HiveThriftServer2`, when an exception is thrown during a SQL execution, the SQL operation state should be set to `ERROR`, but now it remains `RUNNING`. This affects the result of the `GetOperationStatus` Thrift API. Author: Cheng Lian <lian@databricks.com> Closes #3175 from liancheng/fix-op-state and squashes the following commits: 6d4c1fe [Cheng Lian] Sets SQL operation state to ERROR when exception is thrown
Diffstat (limited to 'sql/hive-thriftserver/src')
-rw-r--r--sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/AbstractSparkSQLDriver.scala2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/AbstractSparkSQLDriver.scala b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/AbstractSparkSQLDriver.scala
index fcb302edbf..6ed8fd2768 100644
--- a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/AbstractSparkSQLDriver.scala
+++ b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/AbstractSparkSQLDriver.scala
@@ -19,8 +19,6 @@ package org.apache.spark.sql.hive.thriftserver
import scala.collection.JavaConversions._
-import java.util.{ArrayList => JArrayList}
-
import org.apache.commons.lang.exception.ExceptionUtils
import org.apache.hadoop.hive.metastore.api.{FieldSchema, Schema}
import org.apache.hadoop.hive.ql.Driver