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.22k stars 1.62k forks source link

[DELTA] Removes asInstanceOf[Metadata] casts #3259

Closed yumingxuanguo-db closed 1 week ago

yumingxuanguo-db commented 2 weeks ago

Which Delta project/connector is this regarding?

Description

This PR removes the asInstanceOf[Metadata] casts in AbstractBatchBackfillingCommitOwnerClient.

How was this patch tested?

Ensured the existing test suites, along with the newly added unit test for the helper function, all pass after the removal.

Does this PR introduce any user-facing changes?

No.