Repository navigation
Hold the Rust structs in Arrow tables, by arrow-rs - #27
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The generated Rust structs are held in Arrow tables, and read from them, by arrow-rs: as ARROW_FORMAT.md has it, which Python and C++ hold and read.
arrow,dataclass_native::arrow::{to_arrow, from_arrow}make and read aRecordBatchof the objects, and one of each class they may share: which the rest of Rust's Arrow takes.arrow_struct!,arrow_enum!andarrow_union!, which are of nothing without the feature. Each type has a builder of its column and a reader of one, of its own type: nothing is found by name or cast as each row is held or read.arrow, which is["dataclass_native/arrow"], and is built with it: as arrow-rs is much to build. Python holds them otherwise, as before.On an Apple M1, of extensions built for release, in microseconds for each
Orderof the README's Performance section:pureTo know:
unsafe.Tested by the tests of Arrow which are for every mode, run with the extension: that its tables have the schema of those of the Python reference, with its metadata, and hold the same, that pyarrow finds them valid, and that each reads the other's. And by a program of Rust alone, which cargo now also runs with the feature.
To come: Parquet from Rust alone, which arrow-rs has, and an example built with maturin.