File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -853,9 +853,10 @@ def _create_staged_table(
853853 Returns:
854854 StagedTable: the created staged table instance.
855855 """
856- schema : Schema = self ._convert_schema_if_needed (
857- schema , int (properties .get (TableProperties .FORMAT_VERSION , TableProperties .DEFAULT_FORMAT_VERSION ))
858- ) # type: ignore
856+ schema : Schema = self ._convert_schema_if_needed ( # type: ignore
857+ schema ,
858+ int (properties .get (TableProperties .FORMAT_VERSION , TableProperties .DEFAULT_FORMAT_VERSION )), # type: ignore
859+ )
859860
860861 database_name , table_name = self .identifier_to_database_and_table (identifier )
861862
Original file line number Diff line number Diff line change @@ -500,7 +500,8 @@ def _create_table(
500500 stage_create : bool = False ,
501501 ) -> TableResponse :
502502 iceberg_schema = self ._convert_schema_if_needed (
503- schema , int (properties .get (TableProperties .FORMAT_VERSION , TableProperties .DEFAULT_FORMAT_VERSION ))
503+ schema ,
504+ int (properties .get (TableProperties .FORMAT_VERSION , TableProperties .DEFAULT_FORMAT_VERSION )), # type: ignore
504505 )
505506 fresh_schema = assign_fresh_schema_ids (iceberg_schema )
506507 fresh_partition_spec = assign_fresh_partition_spec_ids (partition_spec , iceberg_schema , fresh_schema )
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ class TableProperties:
219219
220220 DEFAULT_NAME_MAPPING = "schema.name-mapping.default"
221221 FORMAT_VERSION = "format-version"
222- DEFAULT_FORMAT_VERSION = 2
222+ DEFAULT_FORMAT_VERSION : TableVersion = 2
223223
224224 MANIFEST_TARGET_SIZE_BYTES = "commit.manifest.target-size-bytes"
225225 MANIFEST_TARGET_SIZE_BYTES_DEFAULT = 8 * 1024 * 1024 # 8 MB
You can’t perform that action at this time.
0 commit comments