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 2021/05/03 13:05:02 UTC

[GitHub] [arrow-rs] alamb opened a new issue #250: Arrow schema from bytes doesn't handle empty children arrays consistently with python

alamb opened a new issue #250:
URL: https://github.com/apache/arrow-rs/issues/250


   **Describe the bug**
   Found by @gangliao on https://github.com/apache/arrow/pull/9764
   
   reading the code, it does appear that the intent of the `ipc::convert::tests::schema_from_bytes` test is to compare the schema from two different IPC message (aka `schema2` should be coming from the `ipc2` message) as @gangliao  has done in https://github.com/apache/arrow/pull/9764. 
   
   The test seems to have failed however https://github.com/apache/arrow/pull/9764/checks?check_run_id=2161212421
   
   ```
   thread 'ipc::convert::tests::schema_from_bytes' panicked at 'assertion failed: `(left == right)`
     left: `Schema { endianness: Little, fields: Some([Field { name: Some("field1"), nullable: false, type_type: Int, type_: Int { bitWidth: 32, is_signed: false }, dictionary: None, children: Some([]), custom_metadata: None }]), custom_metadata: None, features: None }`,
    right: `Schema { endianness: Little, fields: Some([Field { name: Some("field1"), nullable: false, type_type: Int, type_: Int { bitWidth: 32, is_signed: false }, dictionary: None, children: None, custom_metadata: None }]), custom_metadata: Some([]), features: None }`', arrow/src/ipc/convert.rs:864:9
   ```
   
   The difference is that `schema` has `children: Some([])` and `schema2` has `children: None`
   
   **To Reproduce**
   See change to test above
   
   **Expected behavior**
   Test should pass (the schemas should be the same)
   
   


-- 
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:
users@infra.apache.org