-
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
Replace some of our use of polars
#4801
Conversation
b0e94e0
to
99f09de
Compare
_ = _store.to_dataframe(); // simple way of checking that everything is still readable | ||
} | ||
fn check_still_readable(store: &DataStore) { | ||
store.to_data_table().unwrap(); // simple way of checking that everything is still readable |
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.
I'm not 100% sure what the comment means by "readable"
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.
It's a simple sanity check that it is still possible to iterate through the entire store and get all the data out in a table.
Pretty basic but has failed quite a few times 😇
{ | ||
// We use a RowSet instead of a DataTable to handle duplicate RowIds. | ||
let mut row_set = RowSet::default(); | ||
row_set.insert_tables(store1.to_data_tables(None)); | ||
row_set.insert_into(store2); | ||
sanity_unwrap(store2); |
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.
The old code would use "retrying" to generate new row-ids, which mean the resulting DataTables weren't the same anymore, hence the new RowSet
test struct.
The old test worked because to_dataframe
ignored rowids
Co-authored-by: Clement Rey <[email protected]>
What
arrow2
and get rid ofpolars
#4789We're using polars for some tests.
This PR replaces polars with our own data tables for the tests.
https://github.com/rerun-io/rerun/blob/main/crates/re_data_store/tests/data_store.rs is left, and a pain in the ass.
Checklist
main
build: app.rerun.ionightly
build: app.rerun.io