nleerollergh commented on code in PR #55168:
URL: https://github.com/apache/arrow/pull/55168#discussion_r4497865698
##########
python/pyarrow/tests/parquet/test_metadata.py:
##########
@@ -724,6 +724,30 @@ def test_metadata_equals():
original_metadata.equals(None)
+def test_parquet_metadata_equals_none(tempdir):
+ table = pa.table({"a": [1, 2, 3]})
+ path = tempdir / "metadata_equals_none.parquet"
+ pq.write_table(table, path)
+
+ metadata = pq.read_metadata(path)
+ row_group = metadata.row_group(0)
+ column_chunk = row_group.column(0)
+ objects = [
+ column_chunk.statistics,
+ column_chunk,
+ row_group,
+ metadata.schema,
+ metadata.schema[0],
+ ]
+ none_value = None
+
+ for obj in objects:
+ assert (obj == none_value) is False
+ assert (obj != none_value) is True
Review Comment:
good point, was added by my the review my claude conducted, removed in
https://github.com/apache/arrow/pull/55168/commits/0b5fa18f68673c0266a7f47d8e608dff0c82ff8e
--
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]