AlenkaF commented on code in PR #40341:
URL: https://github.com/apache/arrow/pull/40341#discussion_r1526664796


##########
python/pyarrow/tests/test_array.py:
##########
@@ -3579,6 +3579,47 @@ def test_run_end_encoded_from_buffers():
                                            1, offset, children)
 
 
+def test_run_end_encoded_from_array_with_type():
+    run_ends = [1, 3, 6]
+    values = [1, 2, 3]
+    ree_type = pa.run_end_encoded(pa.int32(), pa.int64())
+    expected = pa.RunEndEncodedArray.from_arrays(run_ends, values,
+                                                 ree_type)
+
+    arr = [1, 2, 2, 3, 3, 3]
+    result = pa.array(arr)
+    assert result.equals(expected)

Review Comment:
   It's a bit annoying I can't test locally, it's making me quite confused. 
Looking at this part now, I do not know what I was trying to test really. Hope 
I will fix pytest soon =)



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