Skip to content
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

Only override the arrow1 versions of the Loggable trait #8604

Merged
merged 8 commits into from
Jan 8, 2025

Conversation

emilk
Copy link
Member

@emilk emilk commented Jan 7, 2025

Related

What

All the arrow2-functions on trait Loggable now defer to the arrow1 implementations, and all implementations only override the arrow1-trait functions.

Copy link

github-actions bot commented Jan 7, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
9168aa9 https://rerun.io/viewer/pr/8604 +nightly +main

Note: This comment is updated whenever you push a commit.

Comment on lines -60 to -61
// TODO(cmc): We use the extended type here because we rely on it for formatting.
Ok(StructArray::new(datatype, values, validity).boxed())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@teh-cmc this will surely cause a regression, but I don't know where.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I haven't reviewed the rest of the PR so I might be lacking context)

This is the one exception where we really really want to keep the extension around, otherwise printing any chunk becomes awful, which makes day-to-day life very hard.

Any reason you cannot keep it around?

Copy link
Member Author

@emilk emilk Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no extended types in arrow-rd:

I can set ARROW:extension:name: rerun.datatypes.TUID in the metadata on the fields (but which field?), but I need some way to test that I'm not breaking anything. I don't know where we rely on this.

AFAICT we use it when displaying a ChunkId or RowId in the UI… which I'm not sure we do?

Copy link
Member Author

@emilk emilk Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do show ChunkId:s the chunk store browser, and everything is fine there:

Screenshot 2025-01-07 at 20 06 29

Copy link
Member

@teh-cmc teh-cmc Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually adding an ARROW:extension:name in the TransportChunk glue seems like the right solution yes.

The best way to test for this is Command Palette > Print datastore. Right now your PR doesn't break it (probably because that still goes through arrow2?), so we can see about that later.

@@ -23,115 +23,113 @@ use crate::{Archetype, ComponentBatch, LoggableBatch};
/// which makes it possible to work with lists' worth of data in a generic fashion.
pub trait Loggable: 'static + Send + Sync + Clone + Sized + SizeBytes {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved around the functions to group them better (arrow2 stuff at the end). Sorry.

@emilk emilk force-pushed the emilk/remove-arrow2-loggable branch from 740bd2e to a324a3b Compare January 7, 2025 16:13
@emilk emilk added 🏹 arrow concerning arrow 🚜 refactor Change the code, not the functionality exclude from changelog PRs with this won't show up in CHANGELOG.md labels Jan 7, 2025
@emilk emilk force-pushed the emilk/remove-arrow2-loggable branch from 23cbb36 to 026b310 Compare January 7, 2025 19:25
@emilk
Copy link
Member Author

emilk commented Jan 7, 2025

@rerun-bot full-check

Copy link

github-actions bot commented Jan 7, 2025

Started a full build: https://github.com/rerun-io/rerun/actions/runs/12658242886

@teh-cmc teh-cmc merged commit d2d39f4 into main Jan 8, 2025
64 checks passed
@teh-cmc teh-cmc deleted the emilk/remove-arrow2-loggable branch January 8, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏹 arrow concerning arrow exclude from changelog PRs with this won't show up in CHANGELOG.md 🚜 refactor Change the code, not the functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants