-
Notifications
You must be signed in to change notification settings - Fork 384
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 component storage to arrow-rs
#8725
base: main
Are you sure you want to change the base?
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
58f628c
to
e94a3b1
Compare
--- | ||
ChunkStore { | ||
id: test_id | ||
config: ChunkStoreConfig { enable_changelog: true, chunk_max_bytes: 393216, chunk_max_rows: 4096, chunk_max_rows_if_unsorted: 1024 } | ||
stats: { | ||
num_chunks: 1 | ||
total_size_bytes: 1.3 KiB | ||
total_size_bytes: 1.8 KiB |
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.
This should be fixed when we update arrow and can run .shrink_to_fit
match ArrowRecordBatch::try_new_with_options( | ||
self.schema().clone(), | ||
row, | ||
&arrow::array::RecordBatchOptions::new().with_row_count(Some(1)), |
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.
Explicitly setting row-count to one means it works even when there are no columns (e.g. due to heavy filtering)
if cfg!(debug_assertions) { | ||
panic!("Failed to create record batch: {err}"); | ||
} else { | ||
re_log::error_once!("Failed to create record batch: {err}"); | ||
None |
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.
Better than the previous silent error
let field = match array.data_type() { | ||
arrow::datatypes::DataType::List(field) => field.clone(), | ||
_ => unreachable!( | ||
"{} should always be a list array", | ||
self.descriptor().full_name() | ||
), | ||
}; | ||
ArrowListArray::try_new(field, offsets, array, None).map_err(|err| err.into()) |
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.
Is this right? 🤔
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/12831826511 |
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/12832277753 |
re_arrow2
toarrow
#3741This makes our store run 100% on arrow-rs.
arrow2 is now relegated to the margins:
re_types_builder
Loggable
,Archetype
etc