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

[Kernel] Add API on TxnBuilder to set the table properties #3269

Closed EstherBear closed 1 week ago

EstherBear commented 1 week ago

Add API on TransactionBuilder to set the table properties.

Which Delta project/connector is this regarding?

Description

Adds an API to TransactionBuilder to set the table properties to provide a way to configure the table by committing a transaction. For example, user can enable inCommitTimestamp property with this API.

How was this patch tested?

Adds unit tests when setting valid and invalid properties with this API.

Does this PR introduce any user-facing changes?

Yes, user can use this API to set table properties.