pitrou commented on code in PR #3276:
URL: https://github.com/apache/arrow-rs/pull/3276#discussion_r1041213545


##########
arrow-pyarrow-integration-testing/tests/test_sql.py:
##########
@@ -193,6 +200,34 @@ def test_time32_python():
     del b
     del expected
 
+
+def test_empty_array_python():
+    """
+    Python -> Rust -> Python
+    """
+    a = pa.array([], pa.int32())

Review Comment:
   The indices buffer is just the data buffer of the indices array. As long as 
its length is 0, the buffer is allowed to be null as per 
https://arrow.apache.org/docs/dev/format/CDataInterface.html#c.ArrowArray.buffers



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