Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/9194#discussion_r42653675
--- Diff:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
---
@@ -308,7 +310,15 @@ private[hive] class SparkSQLCLIDriver extends
CliDriver with Logging {
ret = rc.getResponseCode
if (ret != 0) {
- console.printError(rc.getErrorMessage())
+ // For analysis exception, only the error is printed out to
the console.
+ rc.getException() match {
+ case e : AnalysisException =>
+ console.printError(
+ s"""Failed with exception ${e.getClass.getName}:
${e.getMessage}""")
--- End diff --
I would just say, "Error in query: ${e.message}" or something. It will
always be `org.apache.spark.sql.AnalysisException` and we want to make it clear
that is likely the users fault in this case (i.e. not a bug).
---
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]