BenMagyar commented on code in PR #50534:
URL: https://github.com/apache/arrow/pull/50534#discussion_r3673977883
##########
python/pyarrow/tests/test_table.py:
##########
@@ -2535,6 +2535,76 @@ def test_table_from_pylist(cls):
assert table.to_pylist() == data2
[email protected](
+ ("value_type", "values", "encoded_values"),
+ [
+ (
+ pa.struct([pa.field("age", pa.int32())]),
+ [{"age": 20}, {"age": 20}, {"age": 21}],
+ [{"age": 20}, {"age": 21}],
+ ),
+ (
+ pa.list_(pa.int32()),
+ [[20], [20], [21, 22]],
+ [[20], [21, 22]],
+ ),
+ (
+ pa.large_list(pa.int32()),
+ [[20], [20], [21, 22]],
+ [[20], [21, 22]],
+ ),
+ (
+ pa.list_view(pa.int32()),
+ [[20], [20], [21, 22]],
+ [[20], [21, 22]],
+ ),
+ (
+ pa.large_list_view(pa.int32()),
+ [[20], [20], [21, 22]],
+ [[20], [21, 22]],
+ ),
+ (
+ pa.list_(pa.int32(), 2),
+ [[20, 21], [20, 21], [22, 23]],
+ [[20, 21], [22, 23]],
+ ),
+ (
+ pa.list_(pa.list_(pa.int32())),
+ [[[20], [21]], [[20], [21]], [[22]]],
+ [[[20], [21]], [[22]]],
+ ),
+ (
+ pa.map_(pa.string(), pa.int32(), keys_sorted=True),
+ [{"a": 20}, {"a": 20}, {"b": 21}],
+ [{"a": 20}, {"b": 21}],
+ ),
+ ],
+)
+def test_table_from_pylist_run_end_encoded_nested(
Review Comment:
It is not, wasn't really sure where the line sat on testing between the two.
I'll drop!
--
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]