Skip to content

feat(tables): --layout on tables add, ivf_rebalance_sweep job type, SQL UPDATE/DELETE in the skill - #366

Merged
eddietejeda merged 2 commits into
mainfrom
feat/table-layout-sql-writes
Nov 6, 2026
Merged

eddietejeda merged 2 commits into
mainfrom
feat/table-layout-sql-writes

Conversation

@eddietejeda

Copy link
Copy Markdown
Contributor

Catches the CLI up with recent API changes. Bumps the hotdata SDK to 0.21.0.

  • databases tables add --layout analytical|point_lookup (runtimedb #1661). tables show reports the layout.
  • jobs list --job-type ivf_rebalance_sweep (runtimedb #1598).
  • Skill: SQL UPDATE and DELETE now run (runtimedb #1687, #1695). It now lists what is still refused instead of saying "not supported yet".

Tests: 659 pass. Clippy is clean.

…QL UPDATE/DELETE in the skill

- databases tables add --layout analytical|point_lookup; tables show reports the layout
- jobs list --job-type ivf_rebalance_sweep
- skill: SQL UPDATE and DELETE now run (match by rowid, no key needed); list what is still refused

Needs hotdata (sdk-rust) 0.21.0 for TableInfo.layout and JobType::IvfRebalanceSweep.
@eddietejeda
eddietejeda requested a review from a team as a code owner November 6, 2026 16:31
@eddietejeda
eddietejeda requested review from anoop-narang and removed request for a team November 6, 2026 16:31
Comment thread src/commands/tables.rs
.collect();
crate::output::table::print(&["TABLE", "COLUMN", "DATA_TYPE", "NULLABLE"], &rows);
use crossterm::style::Stylize;
eprintln!("{}", format!("layout: {}", out.layout).dark_grey());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Move the layout: line out of the else branch so it prints in both cases (not blocking).

The else branch skips the line for a table with no columns. In that case -o table never shows the layout, but -o json/-o yaml still include it. The PR description says tables show reports the layout.

Comment thread src/commands/databases.rs
"key_determines": key_determines,
"sorted_by": sorted_by,
"partition_by": partition_by,
"layout": layout.unwrap_or("analytical"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Make the JSON output and the table output agree when --layout is omitted (not blocking).

The JSON output reports "analytical" without a --layout flag. The table output at line 1220 prints no layout: line in the same case. The "analytical" value is also the CLI's assumption about the server default. The declare response does not confirm it. Fix: print layout: analytical in the table branch too, or emit null in JSON when the flag is absent.

@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.07407% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/commands/databases.rs 81.81% 4 Missing ⚠️
src/commands/tables.rs 0.00% 2 Missing ⚠️
src/commands/jobs.rs 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@eddietejeda
eddietejeda merged commit dbf9113 into main Nov 6, 2026
15 checks passed
@eddietejeda
eddietejeda deleted the feat/table-layout-sql-writes branch November 6, 2026 16:45
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