@@ -469,7 +469,7 @@ def append(self, df: pa.Table, snapshot_properties: dict[str, str] = EMPTY_DICT,
469469 if not isinstance (df , pa .Table ):
470470 raise ValueError (f"Expected PyArrow table, got: { df } " )
471471
472- downcast_ns_timestamp_to_us = Config ().get_bool (DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE ) or False
472+ downcast_ns_timestamp_to_us = Config . load ().get_bool (DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE ) or False
473473 _check_pyarrow_schema_compatible (
474474 self .table_metadata .schema (),
475475 provided_schema = df .schema ,
@@ -523,7 +523,7 @@ def dynamic_partition_overwrite(
523523 f"in the latest partition spec: { field } "
524524 )
525525
526- downcast_ns_timestamp_to_us = Config ().get_bool (DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE ) or False
526+ downcast_ns_timestamp_to_us = Config . load ().get_bool (DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE ) or False
527527 _check_pyarrow_schema_compatible (
528528 self .table_metadata .schema (),
529529 provided_schema = df .schema ,
@@ -588,7 +588,7 @@ def overwrite(
588588 if not isinstance (df , pa .Table ):
589589 raise ValueError (f"Expected PyArrow table, got: { df } " )
590590
591- downcast_ns_timestamp_to_us = Config ().get_bool (DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE ) or False
591+ downcast_ns_timestamp_to_us = Config . load ().get_bool (DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE ) or False
592592 _check_pyarrow_schema_compatible (
593593 self .table_metadata .schema (),
594594 provided_schema = df .schema ,
@@ -787,7 +787,7 @@ def upsert(
787787
788788 from pyiceberg .io .pyarrow import _check_pyarrow_schema_compatible
789789
790- downcast_ns_timestamp_to_us = Config ().get_bool (DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE ) or False
790+ downcast_ns_timestamp_to_us = Config . load ().get_bool (DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE ) or False
791791 _check_pyarrow_schema_compatible (
792792 self .table_metadata .schema (),
793793 provided_schema = df .schema ,
0 commit comments