edponce commented on code in PR #12096:
URL: https://github.com/apache/arrow/pull/12096#discussion_r857505629


##########
python/pyarrow/tests/test_compute.py:
##########
@@ -1187,8 +1187,8 @@ def test_drop_null(ty, values):
 
 
 def test_drop_null_chunked_array():
-    arr = pa.chunked_array([["a", None], ["c", "d", None], [None], []])
-    expected_drop = pa.chunked_array([["a"], ["c", "d"], [], []])
+    arr = pa.chunked_array([[None, None], [None], []])

Review Comment:
   In C++, a ChunkedArray has to have all Arrays of the same type, but [the 
Python API allowed coercion of `None` to the first inferred 
type](https://github.com/apache/arrow/pull/12096/files#diff-cede36e8e2e0eb6e6e1ee21745db9687174527f463520c6e6d8b9e8f957bf304L1313)
   ```c++
   ["a", None] --> StringType
   [None] --> NullType
   [] --> NullType
   ```
   Maybe we should allow such coercion in C++ as well.



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