amol- commented on a change in pull request #10097:
URL: https://github.com/apache/arrow/pull/10097#discussion_r620386744
##########
File path: python/pyarrow/array.pxi
##########
@@ -2178,7 +2178,10 @@ cdef class StructArray(Array):
arrays = [asarray(x) for x in arrays]
for arr in arrays:
- c_arrays.push_back(pyarrow_unwrap_array(arr))
+ c_array = pyarrow_unwrap_array(arr)
+ if c_array == nullptr:
+ raise TypeError(f"Unsupported array type {arr.__class__}")
Review comment:
👍 done
##########
File path: python/pyarrow/tests/test_array.py
##########
@@ -666,6 +666,13 @@ def test_struct_from_arrays():
pa.StructArray.from_arrays([a, b, c], fields=[fa2, fb, fc])
+def test_struct_array_from_chunked():
+ chunked_arr = pa.chunked_array([[1, 2, 3], [4, 5, 6]])
Review comment:
👍 done
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]