-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port codegen arrow deserialization to arrow-rs #8375
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
f84e718
to
3e792d2
Compare
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/12410292950 |
Heads up: full check is failing |
10d58b6
to
478e038
Compare
478e038
to
9c5fd70
Compare
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/12634086171 ✅ |
25ee716
to
77e4543
Compare
// `.child()` will panic if the given `type_id` doesn't exist, | ||
// which could happen if the number of union arms has changed | ||
// between serialization and deserialization. | ||
// There is no simple way to check for this using `arrow-rs` | ||
// (no access to `UnionArray::fields` as of arrow 54: | ||
// https://docs.rs/arrow/latest/arrow/array/struct.UnionArray.html) | ||
// | ||
// Still, we're planning on removing arrow unions entirely, so this is… fine. | ||
// TODO(#6388): stop using arrow unions, and remove this peril | ||
let #data_src = #data_src.child(#type_id).as_ref(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not keep the existing if-statement that helped with forward compat though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was no obvious way how to make it work. There is no data_src_arrays
anymore because there is no .fields()
on UnionArray
Related
re_arrow2
toarrow
#3741Blocked by Add unsafe/unchecked slice functions apache/arrow-rs#6901TensorDimension
into shape and names #6830TODO
@rerun-bot full-check