tustvold commented on code in PR #4806:
URL: https://github.com/apache/arrow-rs/pull/4806#discussion_r1322107421
##########
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:
Just as an observation, it is rather strange to me that extension arrays
would be a first-class abstraction and in so doing obfuscate the underlying
storage type
--
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]