Skip to content

Commit

Permalink
Merge branch 'main' into feat/conditional_put
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyler authored Aug 23, 2024
2 parents 2ddfc6a + 23feb52 commit 2b9e17f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion python/deltalake/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1903,12 +1903,27 @@ def set_table_properties(
custom_metadata: Optional[Dict[str, str]] = None,
) -> None:
"""
Unset properties from the table.
Set properties from the table.
Args:
properties: properties which set
raise_if_not_exists: set if should raise if not exists.
custom_metadata: custom metadata that will be added to the transaction commit.
Example:
```python
from deltalake import write_deltalake, DeltaTable
import pandas as pd
df = pd.DataFrame(
{"id": ["1", "2", "3"],
"deleted": [False, False, False],
"price": [10., 15., 20.]
})
write_deltalake("tmp", df)
dt = DeltaTable("tmp")
dt.alter.set_table_properties({"delta.enableChangeDataFeed": "true"})
```
"""
self.table._table.set_table_properties(
properties, raise_if_not_exists, custom_metadata
Expand Down

0 comments on commit 2b9e17f

Please sign in to comment.