Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco committed Sep 14, 2024
1 parent 38f7e24 commit b873ded
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/deltalake/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,7 @@ def add_feature(
allow_protocol_versions_increase: Allow the protocol to be implicitily bumped to reader 3 or writer 7
commit_properties: properties of the transaction commit. If None, default values are used.
post_commithook_properties: properties for the post commit hook. If None, default values are used.
Example:
```python
from deltalake import DeltaTable
Expand All @@ -1841,12 +1841,17 @@ def add_columns(
self,
fields: Union[DeltaField, List[DeltaField]],
custom_metadata: Optional[Dict[str, str]] = None,
commit_properties: Optional[CommitProperties] = None,
post_commithook_properties: Optional[PostCommitHookProperties] = None,
) -> None:
"""Add new columns and/or update the fields of a stuctcolumn
Args:
fields: fields to merge into schema
commit_properties: properties of the transaction commit. If None, default values are used.
post_commithook_properties: properties for the post commit hook. If None, default values are used.
Example:
from deltalake.schema import Field, PrimitiveType, StructType
dt = DeltaTable("test_table")
new_fields = [
Expand Down

0 comments on commit b873ded

Please sign in to comment.