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

Use getCondition instead of the deprecated getErrorClass from SparkThrowable #3767

Open MaxGekk opened 1 month ago

MaxGekk commented 1 month ago

Which Delta project/connector is this regarding?

Description

The PR https://github.com/apache/spark/pull/48196 deprecated the getErrorClass method of SparkThrowable and added new one getCondition. In the PR, I propose to migrate Delta exception onto new method getCondition.

How was this patch tested?

By compiling and running the existing tests.

Does this PR introduce any user-facing changes?

No.