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
Renames the `hotdata datasets` CLI command to `hotdata views` with a
new `src/views.rs` module. The command and all user-facing terminology
(help text, output messages, SQL prefix `views.`, skill docs) now use
"view" / "views". Server-side API paths remain unchanged (`/datasets`).
- Add `src/views.rs` (renamed from deleted `datasets.rs`)
- Add `Views` / `ViewsCommands` to `command.rs`
- Wire dispatch in `main.rs`
- Update README, SKILL.md, WORKFLOWS.md, DATA_MODEL.template.md,
MODEL_BUILD.md across hotdata and hotdata-analytics skills
-`create` registers a managed connection (`source_type: managed`) with no external credentials. Use `--table` to declare tables up front (required before `tables load` on the current API).
148
148
-`tables load` uploads a **parquet** file (or uses a staged `upload_id` from `POST /v1/files`) and publishes it as the table generation (`replace` mode).
149
-
- For CSV/JSON uploads without a managed database, use `hotdata datasets create` instead (`datasets.main.*`).
149
+
- For SQL-query materializations without a managed database, use `hotdata views create` instead (`views.main.*`).
Copy file name to clipboardExpand all lines: skills/hotdata-analytics/SKILL.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
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 via datasets or 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, datasets, 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 via views or 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, views, and auth.
4
4
version: 0.3.2
5
5
---
6
6
7
7
# Hotdata Analytics Skill
8
8
9
9
**OLAP-style analytics** in Hotdata: PostgreSQL-dialect SQL, query execution, run history, stored results, **Chain** materializations, and **sorted** indexes for filters and joins.
10
10
11
-
**Prerequisites:** Authenticate, workspace, and catalog discovery via the **`hotdata`** skill (`connections`, `tables`, `datasets`, `databases`).
11
+
**Prerequisites:** Authenticate, workspace, and catalog discovery via the **`hotdata`** skill (`connections`, `tables`, `views`, `databases`).
- Long-running queries may return `query_run_id` → poll with **`query status`** (exit `2` = still running). Do not re-run identical heavy SQL while polling.
28
28
- For **workspace-wide** joins and naming, load **context:DATAMODEL** when listed (`hotdata context list` → `show DATAMODEL`) — see **`hotdata`** skill.
3.**Chain query** — use printed **`full_name`** or `datasets list`**FULL NAME** column:
97
+
3.**Chain query** — use printed **`full_name`** or `views list`**FULL NAME** column:
98
98
99
99
```bash
100
-
hotdata query "SELECT * FROM datasets.main.chain_slice WHERE ..."
100
+
hotdata query "SELECT * FROM views.main.chain_slice WHERE ..."
101
101
hotdata query "SELECT * FROM analytics.public.slice WHERE ..."
102
102
```
103
103
@@ -122,4 +122,4 @@ List and delete use the same `hotdata indexes` commands as in the search skill;
122
122
123
123
## Sandboxes and chains
124
124
125
-
Sandbox datasets use **`datasets.<sandbox_id>.<table>`**, not `datasets.main`. Run queries with active sandbox config or `hotdata sandbox <id> run hotdata query "..."`. See **`hotdata`** skill **Sandboxes**.
125
+
Sandbox views use **`views.<sandbox_id>.<table>`**, not `views.main`. Run queries with active sandbox config or `hotdata sandbox <id> run hotdata query "..."`. See **`hotdata`** skill **Sandboxes**.
Copy file name to clipboardExpand all lines: skills/hotdata-analytics/references/WORKFLOWS.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
OLAP-style SQL, **History** (query runs and stored results), and **Chain** (materialized follow-ups). Requires **`hotdata`** for auth, workspaces, and catalog commands.
4
4
5
-
**Related:****`hotdata-search`** for BM25/vector indexes and `hotdata search`; **`hotdata`**[WORKFLOWS.md](../../hotdata/references/WORKFLOWS.md) for datasets vs managed databases.
5
+
**Related:****`hotdata-search`** for BM25/vector indexes and `hotdata search`; **`hotdata`**[WORKFLOWS.md](../../hotdata/references/WORKFLOWS.md) for views vs managed databases.
Note the printed **`full_name`** (e.g. `datasets.main.chain_revenue_slice` or `chain_db.public.revenue_slice`). For datasets, **`FULL NAME`** from `datasets list` is authoritative.
83
+
Note the printed **`full_name`** (e.g. `views.main.chain_revenue_slice` or `chain_db.public.revenue_slice`). For views, **`FULL NAME`** from `views list` is authoritative.
84
84
85
85
### 3. Chain query
86
86
87
-
Query using that name — do not hardcode `datasets.main` if the schema segment is a sandbox id:
87
+
Query using that name — do not hardcode `views.main` if the schema segment is a sandbox id:
88
88
89
89
```bash
90
-
hotdata datasets list
91
-
hotdata query "SELECT * FROM datasets.main.chain_revenue_slice WHERE ..."
90
+
hotdata views list
91
+
hotdata query "SELECT * FROM views.main.chain_revenue_slice WHERE ..."
92
92
# Sandbox example (use actual full_name from create or list):
93
-
# hotdata query "SELECT * FROM datasets.s_ufmblmvq.chain_revenue_slice WHERE ..."
93
+
# hotdata query "SELECT * FROM views.s_ufmblmvq.chain_revenue_slice WHERE ..."
94
94
# Managed database:
95
95
# hotdata query "SELECT * FROM chain_db.public.revenue_slice WHERE ..."
96
96
```
@@ -99,18 +99,18 @@ hotdata query "SELECT * FROM datasets.main.chain_revenue_slice WHERE ..."
99
99
100
100
For **sandbox-scoped** chain tables:
101
101
102
-
- Qualified name is **`datasets.<sandbox_id>.<table>`**, not `datasets.main`.
102
+
- Qualified name is **`views.<sandbox_id>.<table>`**, not `views.main`.
103
103
- Run queries with **active sandbox** in config (`hotdata sandbox set`) **or** inside **`hotdata sandbox <sandbox_id> run hotdata query "…"`**.
104
104
- Without sandbox context, you may get **access denied** on sandbox-only tables.
- Record long-lived chains in **context:DATAMODEL → Derived tables (Chain)** with the **full** SQL name you use (`datasets.…` or `database.schema.table`).
109
+
- Record long-lived chains in **context:DATAMODEL → Derived tables (Chain)** with the **full** SQL name you use (`views.…` or `database.schema.table`).
110
110
- Promote join/grain findings to **context:DATAMODEL** when they should outlive the sandbox (**`hotdata`** skill).
111
111
112
112
### Guardrails
113
113
114
114
- Materialize when the base scan is large and the follow-up runs many times.
115
115
- Keep Chain tables focused; avoid wide `SELECT *` materializations when a narrow projection suffices.
116
-
- For upload format choice (datasets vs databases), see **`hotdata`** WORKFLOWS — [Datasets vs managed databases](../../hotdata/references/WORKFLOWS.md#datasets-vs-managed-databases).
116
+
- For source format choice (views vs databases), see **`hotdata`** WORKFLOWS — [Views vs managed databases](../../hotdata/references/WORKFLOWS.md#views-vs-managed-databases).
0 commit comments