pitrou commented on a change in pull request #9778:
URL: https://github.com/apache/arrow/pull/9778#discussion_r603316481



##########
File path: rust/arrow-pyarrow-integration-testing/tests/test_sql.py
##########
@@ -78,3 +78,23 @@ def test_time32_python(self):
         del expected
         # No leak of C++ memory
         self.assertEqual(old_allocated, pyarrow.total_allocated_bytes())
+
+    def test_list_array(self):
+        """
+        Python -> Rust -> Python
+        """
+        old_allocated = pyarrow.total_allocated_bytes()
+        a = pyarrow.array([[1, 2], [1, 2]], pyarrow.list_(pyarrow.int64()))
+        b = arrow_pyarrow_integration_testing.round_trip(a)
+        # list equality does not work, so we check the elements

Review comment:
       By the [format 
spec](https://arrow.apache.org/docs/format/Columnar.html#schema-message):
   > Whether the field is semantically nullable. While this has no bearing on 
the array’s physical layout, many systems distinguish nullable and non-nullable 
fields and we want to allow them to preserve this metadata to enable faithful 
schema round trips.
   
   So, while it's not very useful in itself for Arrow implementations, it's a 
piece of metadata that's nice to preserve.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to