ebyhr commented on PR #3566:
URL: https://github.com/apache/iceberg-python/pull/3566#issuecomment-4814355315
```
================================== FAILURES
===================================
________________________________ test_read_map
_________________________________
schema_map = Schema(NestedField(field_id=5, name='properties',
field_type=MapType(type='map', key_id=51, key_type=StringType(), value_id=52,
value_type=StringType(), value_required=True), required=False), schema_id=0,
identifier_field_ids=[])
file_map = 'file:/tmp/pytest-of-runner/pytest-0/test_read_map0/e.parquet'
def test_read_map(schema_map: Schema, file_map: str) -> None:
result_table = project(schema_map, [file_map])
assert len(result_table.columns[0]) == 3
for actual, expected in zip(result_table.columns[0], [[("a", "b")],
[("c", "d")], [("e", "f"), ("g", "h")]], strict=True):
assert actual.as_py() == expected
> 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"""
)
E AssertionError: assert 'properties: ...ring not null' ==
'properties: ...ring not null'
E
E - properties: map<string, string>
E + properties: map<large_string, large_string>
E ? ++++++ ++++++
E - child 0, entries: struct<key: string not null, value: string
not null> not null
E + child 0, entries: struct<key: large_string not null, value:
large_string not null> not null
E ? ++++++
++++++
E - child 0, key: string not null
E + child 0, key: large_string not null
E ? ++++++
E - child 1, value: string not null
E + child 1, value: large_string not null
E ? ++++++
tests/io/test_pyarrow.py:1235: AssertionError
=========================== short test summary info
============================
FAILED tests/io/test_pyarrow.py::test_read_map - AssertionError: assert
'properties: ...ring not null' == 'properties: ...ring not null'
- properties: map<string, string>
+ properties: map<large_string, large_string>
? ++++++ ++++++
- child 0, entries: struct<key: string not null, value: string not null>
not null
+ child 0, entries: struct<key: large_string not null, value:
large_string not null> not null
? ++++++ ++++++
- child 0, key: string not null
+ child 0, key: large_string not null
? ++++++
- child 1, value: string not null
+ child 1, value: large_string not null
? ++++++
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures
!!!!!!!!!!!!!!!!!!!!!!!!!!!
========== 1 failed, 1944 passed, 1534 deselected in 88.97s (0:01:28)
==========
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]