tustvold commented on code in PR #4806:
URL: https://github.com/apache/arrow-rs/pull/4806#discussion_r1322105222
##########
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)
+
+ # Round-tripping as an array gives back storage type, because arrow-rs has
Review Comment:
I think I must be missing something fundamental here, an array can only have
the 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]