wjones127 commented on code in PR #4806:
URL: https://github.com/apache/arrow-rs/pull/4806#discussion_r1322204165


##########
arrow-pyarrow-integration-testing/tests/test_sql.py:
##########
@@ -393,6 +393,23 @@ def test_sparse_union_python():
     del a
     del b
 
+def test_tensor_array():
+    tensor_type = pa.fixed_shape_tensor(pa.float32(), [2, 3])
+    inner = pa.array([float(x) for x in range(1, 7)] + [None] * 12, 
pa.float32())
+    storage = pa.FixedSizeListArray.from_arrays(inner, 6)
+    f32_array = pa.ExtensionArray.from_storage(tensor_type, storage)

Review Comment:
   > it is rather strange to me that extension arrays would be a first-class 
abstraction and in so doing obfuscate the underlying storage type
   
   I think for systems where RecordBatch is a type exposed to end-users at the 
interface, the obfuscation is a feature, not a bug. 



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