viirya commented on issue #1694: URL: https://github.com/apache/arrow-rs/issues/1694#issuecomment-1125374808
Yea, I just downloaded cpp_out.bin file and ran a test with it. I can read
the file by using IPC `StreamReader`:
```rust
let reader = StreamReader::try_new(file, None).unwrap();
reader.for_each(|batch| {
let batch = batch.unwrap();
println!("batch: {:?}", batch);
});
```
```
batch: RecordBatch { schema: Schema { fields: [Field { name: "as",
data_type: Dictionary(Int8, Utf8), nullable: true, dict_id: 0, dict_is_ordered:
false, metadata: None }, Field { name: "bs", data_type: Dictionary(Int8, Utf8),
null
able: true, dict_id: 1, dict_is_ordered: false, metadata: None }], metadata:
{} }, columns: [DictionaryArray {keys: PrimitiveArray<Int8>
[
0,
1,
] values: StringArray
[
"a1",
"a2",
]}
, DictionaryArray {keys: PrimitiveArray<Int8>
[
0,
1,
] values: StringArray
[
"b1",
"b2",
]}
], row_count: 2 }
```
--
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]
