Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/9375#discussion_r43737016
--- Diff:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
---
@@ -276,19 +278,23 @@ private[hive] class SparkSQLCLIDriver extends
CliDriver with Logging {
driver.init()
val out = sessionState.out
+ val err = sessionState.err
val start: Long = System.currentTimeMillis()
if (sessionState.getIsVerbose) {
out.println(cmd)
}
- val rc = driver.run(cmd)
+ val rcWrapper = driver.runWrapper(cmd)
val end = System.currentTimeMillis()
val timeTaken: Double = (end - start) / 1000.0
- ret = rc.getResponseCode
+ ret = rcWrapper.rc.getResponseCode
if (ret != 0) {
- console.printError(rc.getErrorMessage())
- driver.close()
- return ret
+ // For analysis exception, only the error is printed out to
the console.
+ rcWrapper.cause match {
+ case e : AnalysisException =>
--- End diff --
no space after `e`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]