You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: scope all commands to active database; remove connections command (#221)
* feat: scope tables list to active database when set
* feat: add results show, tables show; remove connections command
* refactor: scope tables to databases, remove --connection-id from list
* fix: tables show uses catalog name in TABLE column, not internal connection ID
* docs: update skills — remove connections, add tables show/results show
* Scope indexes list to the active database
When a database is active, indexes list automatically narrows to that
database connection ID. Falls back to workspace-wide when none is set.
* Scope search to databases: catalog.schema.table or schema.table with active DB
--table now accepts schema.table (resolves catalog from active database)
or the full catalog.schema.table form. Removes the old connection.table
syntax. Also updates hotdata-search SKILL.md to match.
* Remove --connection-id from indexes delete; --catalog is now required
* Fix tables list: honor --table filter and fall through on --limit/--cursor
When an active database is set, --table now passes through to the API
instead of being silently dropped. --limit and --cursor fall through to
tables::list (which supports pagination) rather than the active-db path.
* Fix codex review findings: stale tests and active-DB scoping with --limit/--cursor
P1: Remove stale tests that pattern-matched IndexesCommands::Delete with
the old connection_id field; update to match the new catalog-only shape.
P2: tables list now always uses the active-database path when a DB is set,
even with --limit/--cursor. collect_tables does a single paged fetch when
limit/cursor are provided, so pagination works and the TABLE column stays
catalog-prefixed.
* Fix error message: 'no catalog with id' instead of 'no connection named or with id'
* Add unit tests for collect_tables, indexes list args, and results show args
Fixes failing table-filter test: mockito matcher used 'table_name' but the SDK
sends 'table' as the query parameter.
* fmt: apply rustfmt
---------
Co-authored-by: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com>
Copy file name to clipboardExpand all lines: skills/hotdata-analytics/SKILL.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: hotdata-analytics
3
-
description: Use this skill when the user wants OLAP-style SQL analytics in Hotdata — aggregations, GROUP BY, JOINs, reporting, exploratory queries, query run history, stored results, or materialized follow-up tables (Chain into managed databases). Activate for "analyze", "aggregate", "rollup", "pivot", "report", "metrics", "GROUP BY", "query history", "past queries", "query runs", "stored results", "materialize", "chain", "intermediate table", or sorted indexes for filters/range scans. Do not load for BM25/vector search or geospatial SQL — use hotdata-search or hotdata-geospatial. Requires the core hotdata skill for connections, tables, and auth.
3
+
description: Use this skill when the user wants OLAP-style SQL analytics in Hotdata — aggregations, GROUP BY, JOINs, reporting, exploratory queries, query run history, stored results, or materialized follow-up tables (Chain into managed databases). Activate for "analyze", "aggregate", "rollup", "pivot", "report", "metrics", "GROUP BY", "query history", "past queries", "query runs", "stored results", "materialize", "chain", "intermediate table", or sorted indexes for filters/range scans. Do not load for BM25/vector search or geospatial SQL — use hotdata-search or hotdata-geospatial. Requires the core hotdata skill for tables and auth.
Copy file name to clipboardExpand all lines: skills/hotdata-search/SKILL.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ version: 0.15.0
8
8
9
9
Retrieval workloads in Hotdata: **BM25 full-text**, **vector similarity**, and the **indexes** and **embedding providers** that power them.
10
10
11
-
**Prerequisites:** Authenticate and select a workspace (see the **`hotdata`** skill). Use fully qualified table names: `<connection>.<schema>.<table>`.
11
+
**Prerequisites:** Authenticate, set a workspace, and set an active database (`hotdata databases set <id>`) — see the **`hotdata`** skill. Use fully qualified table names: `<catalog>.<schema>.<table>`.
-**Custom embedding model, raw query vector, or no vector index?** Use `hotdata query` directly (e.g. `cosine_distance(col, [<vec>])`) — `search` only auto-embeds the query text via the index's own provider.
38
41
-**Before search:** create the right index (`indexes create --type bm25` or `--type vector`). See [references/INDEXES.md](references/INDEXES.md).
39
42
- Default `--limit` is 10.
40
-
-**Managed databases:**set the database active (`hotdata databases set <db>`) and reference the table by its **SQL catalog** — `<default_catalog>.<schema>.<table>`, usually `default.public.<table>`. Do **not** use the internal `__db_<id>` label that `indexes list` displays, nor a connection id — `bm25_search`/`vector_distance` resolve a catalog attached to the active database, so a`__db_…` or `conn…` prefix errors with *catalog … is not attached*.
43
+
-**Active database:**with `hotdata databases set <db>`, you can pass `schema.table` directly (e.g. `--table public.articles`) — the active database's catalog is resolved automatically. Or use the full `catalog.schema.table` form. Do **not** use the internal `__db_<id>` label or raw connection ID prefix — `bm25_search`/`vector_distance` resolve a catalog attached to the active database, so an`__db_…` or `conn…` prefix errors with *catalog … is not attached*.
41
44
42
45
---
43
46
44
47
## Indexes (BM25 and vector)
45
48
46
-
Create attaches to a table via its `--catalog` alias (a managed-database catalog or a connection name). `list` filters by any of `--connection-id` (short `-c`) / `--schema` / `--table` (all optional). `delete`**requires all of**`--connection-id` (short `-c`) + `--schema` + `--table` + `--name`.
47
-
48
-
**Unscoped `hotdata indexes list` (no `--connection-id`) scans the whole workspace — both regular connections *and* managed databases** — so managed-database indexes appear without any flags. In that whole-workspace view the `table` column shows a managed database under its internal `__db_<id>.<schema>.<table>` label (a connection-scoped `indexes list --connection-id <db-conn>` shows the same rows).
49
+
Create attaches to a table via its `--catalog` alias (a managed-database catalog or a connection name). `list` narrows to the **active database** when one is set; without one it scans the whole workspace. Filter further with `--schema` / `--table`. `delete`**requires all of**`--catalog` + `--schema` + `--table` + `--name`.
49
50
50
51
```bash
51
-
# List — whole-workspace scan, incl. managed databases (filter by connection, schema, or table)
-**`--type` is required** on create: `bm25` (one or more text columns, comma-separated in `--column`) or `vector` (exactly one column; often embeddings or auto-embedded text). (`sorted` is also a valid `--type`, covered in **`hotdata-analytics`**.)
0 commit comments