From b873ded6af8fb48b34de88d46d707aecc8529304 Mon Sep 17 00:00:00 2001 From: Ion Koutsouris <15728914+ion-elgreco@users.noreply.github.com> Date: Sat, 14 Sep 2024 09:50:36 +0200 Subject: [PATCH] fmt --- python/deltalake/table.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/deltalake/table.py b/python/deltalake/table.py index 6e8469331e..f674ab6fd5 100644 --- a/python/deltalake/table.py +++ b/python/deltalake/table.py @@ -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 @@ -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 = [