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

feat: vortex-tui #1911

Merged
merged 4 commits into from
Jan 29, 2025
Merged

feat: vortex-tui #1911

merged 4 commits into from
Jan 29, 2025

Conversation

a10y
Copy link
Contributor

@a10y a10y commented Jan 13, 2025

As we change/break format makes it easier to keep this tool up to date. Also helpful for debugging/exploring format.

I've also added a vx alias so we can immediately access it from cargo, e.g.

cargo vx browse bench-vortex/data/tpch/1/vortex_compressed/nation.vortex
image

@a10y a10y force-pushed the aduffy/vx-cli branch 2 times, most recently from b985a11 to 324a3f5 Compare January 13, 2025 02:13
@a10y a10y changed the title feat: bring vortex-tui into tree feat: vortex-tui Jan 13, 2025
@a10y a10y marked this pull request as draft January 22, 2025 23:10
@a10y a10y marked this pull request as ready for review January 29, 2025 04:47
@a10y a10y requested a review from gatesn January 29, 2025 04:48
Copy link
Contributor

@gatesn gatesn left a comment

Choose a reason for hiding this comment

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

Very nice! It would be good to file follow up issues that whatever introspection you're doing here is probably useful to exist in an easier API, e.g. traversing ArrayData and LayoutData trees.

vortex-array/src/parts.rs Outdated Show resolved Hide resolved
[dependencies]
bytes = { workspace = true }
clap = { version = "4", features = ["derive"] }
crossterm = "0.28"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we move these into root Cargo.toml and use {workspace = true}?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea I was on the fence about this one. The "rusty" thing to do for a binary crate inside of a workspace is seems to be put all deps that are specific to that bin in the local Cargo.toml

E.g. datafusion-cli: https://github.com/apache/datafusion/blob/main/datafusion-cli/Cargo.toml

uv seems to use workspace deps though: https://github.com/astral-sh/uv/blob/main/crates/uv-cli/Cargo.toml

Can move things to workspace

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I see, yeah that may make sense given they end up being locked differently right?

/// A pointer into the `Layout` hierarchy that can be advanced.
///
/// The pointer wraps an InitialRead.
pub struct LayoutCursor {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this somewhat similar to ArrayVisitor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Somewhat? It's specifically for layout hierarchy, and just gives us an owned pointer that we can mutate to move up/down the tree

vortex-cli/src/browse/app.rs Outdated Show resolved Hide resolved
@a10y a10y enabled auto-merge (squash) January 29, 2025 15:14
@a10y a10y merged commit 8830b68 into develop Jan 29, 2025
21 checks passed
@a10y a10y deleted the aduffy/vx-cli branch January 29, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants