@@ -324,57 +324,57 @@ def test_schema_to_pyarrow_schema(table_schema_nested: Schema) -> None:
324324 actual = schema_to_pyarrow (table_schema_nested )
325325 expected = """foo: string
326326 -- field metadata --
327- field_id: '1'
327+ PARQUET: field_id: '1'
328328bar: int32 not null
329329 -- field metadata --
330- field_id: '2'
330+ PARQUET: field_id: '2'
331331baz: bool
332332 -- field metadata --
333- field_id: '3'
333+ PARQUET: field_id: '3'
334334qux: list<element: string not null> not null
335335 child 0, element: string not null
336336 -- field metadata --
337- field_id: '5'
337+ PARQUET: field_id: '5'
338338 -- field metadata --
339- field_id: '4'
339+ PARQUET: field_id: '4'
340340quux: map<string, map<string, int32>> not null
341341 child 0, entries: struct<key: string not null, value: map<string, int32> not null> not null
342342 child 0, key: string not null
343343 -- field metadata --
344- field_id: '7'
344+ PARQUET: field_id: '7'
345345 child 1, value: map<string, int32> not null
346346 child 0, entries: struct<key: string not null, value: int32 not null> not null
347347 child 0, key: string not null
348348 -- field metadata --
349- field_id: '9'
349+ PARQUET: field_id: '9'
350350 child 1, value: int32 not null
351351 -- field metadata --
352- field_id: '10'
352+ PARQUET: field_id: '10'
353353 -- field metadata --
354- field_id: '8'
354+ PARQUET: field_id: '8'
355355 -- field metadata --
356- field_id: '6'
356+ PARQUET: field_id: '6'
357357location: list<element: struct<latitude: float, longitude: float> not null> not null
358358 child 0, element: struct<latitude: float, longitude: float> not null
359359 child 0, latitude: float
360360 -- field metadata --
361- field_id: '13'
361+ PARQUET: field_id: '13'
362362 child 1, longitude: float
363363 -- field metadata --
364- field_id: '14'
364+ PARQUET: field_id: '14'
365365 -- field metadata --
366- field_id: '12'
366+ PARQUET: field_id: '12'
367367 -- field metadata --
368- field_id: '11'
368+ PARQUET: field_id: '11'
369369person: struct<name: string, age: int32 not null>
370370 child 0, name: string
371371 -- field metadata --
372- field_id: '16'
372+ PARQUET: field_id: '16'
373373 child 1, age: int32 not null
374374 -- field metadata --
375- field_id: '17'
375+ PARQUET: field_id: '17'
376376 -- field metadata --
377- field_id: '15'"""
377+ PARQUET: field_id: '15'"""
378378 assert repr (actual ) == expected
379379
380380
@@ -888,22 +888,22 @@ def test_projection_add_column(file_int: str) -> None:
888888list: list<element: int32>
889889 child 0, element: int32
890890 -- field metadata --
891- field_id: '21'
891+ PARQUET: field_id: '21'
892892map: map<int32, string>
893893 child 0, entries: struct<key: int32 not null, value: string> not null
894894 child 0, key: int32 not null
895895 -- field metadata --
896- field_id: '31'
896+ PARQUET: field_id: '31'
897897 child 1, value: string
898898 -- field metadata --
899- field_id: '32'
899+ PARQUET: field_id: '32'
900900location: struct<lat: double, lon: double>
901901 child 0, lat: double
902902 -- field metadata --
903- field_id: '41'
903+ PARQUET: field_id: '41'
904904 child 1, lon: double
905905 -- field metadata --
906- field_id: '42'"""
906+ PARQUET: field_id: '42'"""
907907 )
908908
909909
@@ -953,10 +953,10 @@ def test_projection_add_column_struct(schema_int: Schema, file_int: str) -> None
953953 child 0, entries: struct<key: int32 not null, value: string> not null
954954 child 0, key: int32 not null
955955 -- field metadata --
956- field_id: '3'
956+ PARQUET: field_id: '3'
957957 child 1, value: string
958958 -- field metadata --
959- field_id: '4'"""
959+ PARQUET: field_id: '4'"""
960960 )
961961
962962
@@ -1004,7 +1004,7 @@ def test_projection_filter(schema_int: Schema, file_int: str) -> None:
10041004 repr (result_table .schema )
10051005 == """id: int32
10061006 -- field metadata --
1007- field_id: '1'"""
1007+ PARQUET: field_id: '1'"""
10081008 )
10091009
10101010
@@ -1182,10 +1182,10 @@ def test_projection_nested_struct_different_parent_id(file_struct: str) -> None:
11821182 == """location: struct<lat: double, long: double>
11831183 child 0, lat: double
11841184 -- field metadata --
1185- field_id: '41'
1185+ PARQUET: field_id: '41'
11861186 child 1, long: double
11871187 -- field metadata --
1188- field_id: '42'"""
1188+ PARQUET: field_id: '42'"""
11891189 )
11901190
11911191
0 commit comments