spark-instrumented-optimizer/sql/core/src
Davies Liu 9afdfc94f4 [SPARK-13286] [SQL] add the next expression of SQLException as cause
## What changes were proposed in this pull request?

Some JDBC driver (for example PostgreSQL) does not use the underlying exception as cause, but have another APIs (getNextException) to access that, so it it's included in the error logging, making us hard to find the root cause, especially in batch mode.

This PR will pull out the next exception and add it as cause (if it's different) or suppressed (if there is another different cause).

## How was this patch tested?

Can't reproduce this on the default JDBC driver, so did not add a regression test.

Author: Davies Liu <davies@databricks.com>

Closes #14722 from davies/keep_cause.
2016-08-23 09:45:13 -07:00
..
main [SPARK-13286] [SQL] add the next expression of SQLException as cause 2016-08-23 09:45:13 -07:00
test [SPARK-17188][SQL] Moves class QuantileSummaries to project catalyst for implementing percentile_approx 2016-08-23 14:57:00 +08:00