Skip to content

Conversation

oxkitsune
Copy link
Member

Related

What

This treats empty messages as a special case again, and correctly constructs an empty struct.

@oxkitsune oxkitsune added 🪳 bug Something isn't working 🧢 MCAP Everything related to the MCAP support labels Oct 10, 2025
Copy link

github-actions bot commented Oct 10, 2025

Web viewer built successfully.

Result Commit Link Manifest
ca73624 https://rerun.io/viewer/pr/11488 +nightly +main

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

@oxkitsune oxkitsune added the exclude from changelog PRs with this won't show up in CHANGELOG.md label Oct 10, 2025
@oxkitsune oxkitsune changed the title Special case empty structs Construct an empty struct for empty ROS2 message definitions Oct 10, 2025

fn finish(&mut self) -> arrow::array::ArrayRef {
Arc::new(self.builder.finish())
// Special case for empty structs, e.g. `std_msgs/Empty`
Copy link
Member

@emilk emilk Oct 13, 2025

Choose a reason for hiding this comment

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

I can see from the code that we're special-casing it, but I cannot see why.

Comment the why, not the what

Copy link
Member Author

Choose a reason for hiding this comment

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

This is an attempt to fix an issue when querying out these empty columns. However, it looks like it might be a datafusion issue: RR-2653.

Marking this as draft until then.

@oxkitsune oxkitsune marked this pull request as draft October 13, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪳 bug Something isn't working exclude from changelog PRs with this won't show up in CHANGELOG.md 🧢 MCAP Everything related to the MCAP support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants