Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions tests/io/test_pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1234,10 +1234,10 @@ def test_read_map(schema_map: Schema, file_map: str) -> None:

assert (
repr(result_table.schema)
== """properties: map<string, string>
child 0, entries: struct<key: string not null, value: string not null> not null
child 0, key: string not null
child 1, value: string not null"""
== """properties: map<large_string, large_string>
child 0, entries: struct<key: large_string not null, value: large_string not null> not null
child 0, key: large_string not null
child 1, value: large_string not null"""
)


Expand Down Expand Up @@ -1721,13 +1721,13 @@ def test_projection_maps_of_structs(schema_map_of_structs: Schema, file_map_of_s
):
assert actual.as_py() == expected
expected_schema_repr = (
"locations: map<string, struct<latitude: double not null, "
"longitude: double not null, altitude: double>>\n"
" child 0, entries: struct<key: string not null, value: struct<latitude: double not null, "
"longitude: double not null, al (... 25 chars omitted) not null\n"
" child 0, key: string not null\n"
" child 1, value: struct<latitude: double not null, longitude: double not null, "
"altitude: double> not null\n"
"locations: map<large_string, struct<latitude: double not null, longitude: "
"double not null, altitude: double>>\n"
" child 0, entries: struct<key: large_string not null, value: "
"struct<latitude: double not null, longitude: double not nu (... 31 chars omitted) not null\n"
" child 0, key: large_string not null\n"
" child 1, value: struct<latitude: double not null, longitude: double "
"not null, altitude: double> not null\n"
" child 0, latitude: double not null\n"
" child 1, longitude: double not null\n"
" child 2, altitude: double"
Expand Down
Loading