kou commented on code in PR #44497:
URL: https://github.com/apache/arrow/pull/44497#discussion_r1811481927


##########
python/pyarrow/tests/test_table.py:
##########
@@ -2301,6 +2301,10 @@ def test_table_from_pydict(cls):
     with pytest.raises(TypeError):
         cls.from_pydict({'a': [1, 2, 3]}, schema={})
 
+    # With dicts containing NaNs
+    table = cls.from_pydict({"foo": [float("nan")]})
+    assert table != table

Review Comment:
   Could you also add a C++ level test to detect this case only in C++ level?



-- 
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]

Reply via email to