yaooqinn edited a comment on pull request #28963:
URL: https://github.com/apache/spark/pull/28963#issuecomment-653442176


   The thing is that the actual exception here is hard to define as we capture 
all `Throwable`s here.
   Or we can add a configuration that is not to decide which exception to deal 
with but just w/ or w/o exception stacktrace.
   if w/o, we just print the message parts of the exception tree, something 
like:
   ```scala
   Error running query: org.apache.spark.sql.AnalysisException: The second 
argument of 'date_sub' function needs to be an integer.;
     - Caused by: java.lang.NumberFormatException: invalid input syntax for 
type numeric: 1.2
   ```
   
   otherwise, you get full stacktrace like 
https://github.com/apache/spark/pull/28963#issuecomment-652893272


----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to