You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/12/13 16:32:50 UTC

[GitHub] [arrow] pitrou commented on a diff in pull request #14831: ARROW-18423: [Python] Expose reading a schema from an IPC message

pitrou commented on code in PR #14831:
URL: https://github.com/apache/arrow/pull/14831#discussion_r1047408878


##########
python/pyarrow/tests/test_ipc.py:
##########
@@ -795,6 +795,12 @@ def test_message_read_from_compressed(example_messages):
         assert result.equals(message)
 
 
+def test_message_read_schema(example_messages):
+    batches, messages = example_messages
+    schema = pa.ipc.read_schema(messages[0])
+    schema.equals(batches[1].schema)

Review Comment:
   Should probably be
   ```suggestion
       assert schema.equals(batches[1].schema)
   ```



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org