@@ -850,56 +850,52 @@ def test_assert_default_sort_order_id(table_v2: Table) -> None:
850850
851851
852852def test_correct_schema () -> None :
853- table_metadata = TableMetadataV2 (
854- ** {
855- "format-version" : 2 ,
856- "table-uuid" : "9c12d441-03fe-4693-9a96-a0705ddf69c1" ,
857- "location" : "s3://bucket/test/location" ,
858- "last-sequence-number" : 34 ,
859- "last-updated-ms" : 1602638573590 ,
860- "last-column-id" : 3 ,
861- "current-schema-id" : 1 ,
862- "schemas" : [
863- {"type" : "struct" , "schema-id" : 0 , "fields" : [{"id" : 1 , "name" : "x" , "required" : True , "type" : "long" }]},
864- {
865- "type" : "struct" ,
866- "schema-id" : 1 ,
867- "identifier-field-ids" : [1 , 2 ],
868- "fields" : [
869- {"id" : 1 , "name" : "x" , "required" : True , "type" : "long" },
870- {"id" : 2 , "name" : "y" , "required" : True , "type" : "long" },
871- {"id" : 3 , "name" : "z" , "required" : True , "type" : "long" },
872- ],
873- },
874- ],
875- "default-spec-id" : 0 ,
876- "partition-specs" : [
877- {"spec-id" : 0 , "fields" : [{"name" : "x" , "transform" : "identity" , "source-id" : 1 , "field-id" : 1000 }]}
878- ],
879- "last-partition-id" : 1000 ,
880- "default-sort-order-id" : 0 ,
881- "sort-orders" : [],
882- "current-snapshot-id" : 123 ,
883- "snapshots" : [
884- {
885- "snapshot-id" : 234 ,
886- "timestamp-ms" : 1515100955770 ,
887- "sequence-number" : 0 ,
888- "summary" : {"operation" : "append" },
889- "manifest-list" : "s3://a/b/1.avro" ,
890- "schema-id" : 10 ,
891- },
892- {
893- "snapshot-id" : 123 ,
894- "timestamp-ms" : 1515100955770 ,
895- "sequence-number" : 0 ,
896- "summary" : {"operation" : "append" },
897- "manifest-list" : "s3://a/b/1.avro" ,
898- "schema-id" : 0 ,
899- },
900- ],
901- }
902- )
853+ table_metadata = TableMetadataV2 (** {
854+ "format-version" : 2 ,
855+ "table-uuid" : "9c12d441-03fe-4693-9a96-a0705ddf69c1" ,
856+ "location" : "s3://bucket/test/location" ,
857+ "last-sequence-number" : 34 ,
858+ "last-updated-ms" : 1602638573590 ,
859+ "last-column-id" : 3 ,
860+ "current-schema-id" : 1 ,
861+ "schemas" : [
862+ {"type" : "struct" , "schema-id" : 0 , "fields" : [{"id" : 1 , "name" : "x" , "required" : True , "type" : "long" }]},
863+ {
864+ "type" : "struct" ,
865+ "schema-id" : 1 ,
866+ "identifier-field-ids" : [1 , 2 ],
867+ "fields" : [
868+ {"id" : 1 , "name" : "x" , "required" : True , "type" : "long" },
869+ {"id" : 2 , "name" : "y" , "required" : True , "type" : "long" },
870+ {"id" : 3 , "name" : "z" , "required" : True , "type" : "long" },
871+ ],
872+ },
873+ ],
874+ "default-spec-id" : 0 ,
875+ "partition-specs" : [{"spec-id" : 0 , "fields" : [{"name" : "x" , "transform" : "identity" , "source-id" : 1 , "field-id" : 1000 }]}],
876+ "last-partition-id" : 1000 ,
877+ "default-sort-order-id" : 0 ,
878+ "sort-orders" : [],
879+ "current-snapshot-id" : 123 ,
880+ "snapshots" : [
881+ {
882+ "snapshot-id" : 234 ,
883+ "timestamp-ms" : 1515100955770 ,
884+ "sequence-number" : 0 ,
885+ "summary" : {"operation" : "append" },
886+ "manifest-list" : "s3://a/b/1.avro" ,
887+ "schema-id" : 10 ,
888+ },
889+ {
890+ "snapshot-id" : 123 ,
891+ "timestamp-ms" : 1515100955770 ,
892+ "sequence-number" : 0 ,
893+ "summary" : {"operation" : "append" },
894+ "manifest-list" : "s3://a/b/1.avro" ,
895+ "schema-id" : 0 ,
896+ },
897+ ],
898+ })
903899
904900 t = Table (
905901 identifier = ("default" , "t1" ),
0 commit comments