Skip to content

Conversation

@palaska
Copy link
Contributor

@palaska palaska commented Dec 7, 2025

Summary

  • Add --json output flag to inspect and tree commands for programmatic access
  • Add vx segments command to display segment information as JSON
  • Add vx query command for SQL queries via DataFusion
  • Add interactive Query tab to vx browse TUI with pagination and sorting

Changes

  1. JSON output for inspect/tree - Structured JSON output for tooling integration
  2. Segments command - New vx segments outputs byte offsets, row ranges, alignment info
  3. SQL query command - vx query --sql "SELECT * FROM data" with JSON output
  4. Query tab in TUI - Interactive SQL queries in browse mode with pagination

Test plan

  • Run vx inspect --json <file> and verify JSON output
  • Run vx tree layout --json <file> and verify JSON output
  • Run vx segments <file> and verify segment info
  • Run vx query --sql "SELECT * FROM data LIMIT 10" <file>
  • Run vx browse <file> and test Query tab (Tab to switch, Enter to execute)

@palaska
Copy link
Contributor Author

palaska commented Dec 7, 2025

Screenshot 2025-12-07 at 04 00 49

Adds structured JSON output option to the inspect and tree commands,
enabling programmatic access to file metadata for tooling integration.

Signed-off-by: Baris Palaska <[email protected]>
Adds a new 'vx segments' command that outputs structured JSON information
about all segments in a Vortex file, including byte offsets, row ranges,
and alignment information. The segment tree logic is shared with the TUI.

Signed-off-by: Baris Palaska <[email protected]>
Adds a new 'vx query' command that executes SQL queries against Vortex
files using DataFusion. The table is available as 'data' in queries.
Outputs structured JSON with schema and row data for tooling integration.

Signed-off-by: Baris Palaska <[email protected]>
Adds a Query tab to the TUI browse mode with:
- SQL input with cursor navigation
- Paginated result display with LIMIT/OFFSET
- Column sorting (click header to cycle ASC/DESC/none)
- Uses shared DataFusion helper for query execution

Signed-off-by: Baris Palaska <[email protected]>
Signed-off-by: Baris Palaska <[email protected]>
@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.28%. Comparing base (ee1e4b2) to head (e8a77b4).
⚠️ Report is 7 commits behind head on develop.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant