delta-io / delta

An open-source storage framework that enables building a Lakehouse architecture with compute engines including Spark, PrestoDB, Flink, Trino, and Hive and APIs
https://delta.io
Apache License 2.0
7.62k stars 1.71k forks source link

[Spark] Refactor CommitFailedException to allow passing in an inner exception #3794

Closed ctringdb closed 4 weeks ago

ctringdb commented 1 month ago

Which Delta project/connector is this regarding?

Description

Refactor CommitFailedException to allow for passing in a root cause exception so that we don't lose its stack trace

How was this patch tested?

Simulate exceptions in unit tests and observe the output exception

Does this PR introduce any user-facing changes?

No