wangyum commented on a change in pull request #25960: [SPARK-29283][SQL] Error
message is hidden when query from JDBC, especially enabled adaptive execution
URL: https://github.com/apache/spark/pull/25960#discussion_r332384974
##########
File path:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetCatalogsOperation.scala
##########
@@ -68,11 +69,18 @@ private[hive] class SparkGetCatalogsOperation(
}
setState(OperationState.FINISHED)
} catch {
- case e: HiveSQLException =>
+ case e: Throwable =>
Review comment:
+1 for `Throwable`.
Extractor of non-fatal Throwables. Will not match fatal errors like
`VirtualMachineError`.
(for example, `OutOfMemoryError` and `StackOverflowError`, subclasses of
`VirtualMachineError`), `ThreadDeath`, `LinkageError`, `InterruptedException`,
`ControlThrowable`.
https://github.com/scala/scala/blob/v2.12.10/src/library/scala/util/control/NonFatal.scala#L17-L19
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]