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] Fix DeltaColumnMappingSuite."column mapping batch scan should detect physical name changes" test #3742

Closed juliuszsompolski closed 1 month ago

juliuszsompolski commented 1 month ago

Which Delta project/connector is this regarding?

Description

After https://github.com/apache/spark/pull/48211 this test needs to use a separate Dataframe object for the failing / succeeding test case, because LazyTry will cache the error of the failing case.

How was this patch tested?

Running the test on Spark master.

Does this PR introduce any user-facing changes?

No.