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
docs(skills): use top-level databricks aitools everywhere
Follow-up to #60, which only touched README/manifest and the jobs +
pipelines SKILL.md. This sweeps the remaining `databricks experimental
aitools` references across the core/apps skills, the experimental
skills, and reference docs.
The old paths still work as deprecated aliases (see databricks/cli#4917),
but new readers should be pointed at the supported command.
Co-authored-by: Isaac
| List tables |`databricks aitools tools query --warehouse WH "SHOW TABLES IN catalog.schema"`|
18
+
| Get schema |`databricks aitools tools discover-schema catalog.schema.table1 catalog.schema.table2`|
19
+
| Test query |`databricks aitools tools query --warehouse WH "SELECT..."`|
20
20
| Create dashboard |`databricks lakeview create --display-name "X" --warehouse-id "WH" --dataset-catalog CATALOG --dataset-schema SCHEMA --serialized-dashboard "$(cat file.json)" --json '{"parent_path": "/Workspace/Users/<you>/path"}'` — `--dataset-catalog` / `--dataset-schema` are **flag-only** (REQUIRED; CLI silently drops them if put in `--json`); `parent_path` is JSON-only (no flag). Queries must use bare table names. |
> **`--warehouse` flag**: if `databricks experimental aitools tools query --warehouse WH "..."` fails with `unknown flag: --warehouse` on your CLI version, set `DATABRICKS_WAREHOUSE_ID=WH` in the environment instead and drop the flag — the command auto-picks it from there.
25
+
> **`--warehouse` flag**: if `databricks aitools tools query --warehouse WH "..."` fails with `unknown flag: --warehouse` on your CLI version, set `DATABRICKS_WAREHOUSE_ID=WH` in the environment instead and drop the flag — the command auto-picks it from there.
26
26
27
27
---
28
28
@@ -57,9 +57,9 @@ A good dashboard comes from knowing the data first. Spend time here — the expl
57
57
58
58
Use `discover-schema` as the default — one call returns columns, types, sample rows, null counts, and row count. If you only know the schema, list tables first with `query "SHOW TABLES IN ..."`.
Sample rows alone don't tell you what to build. you can write aggregate SQL through `databricks experimental aitools tools query --warehouse <WH> "..."` to probe typically:
62
+
Sample rows alone don't tell you what to build. you can write aggregate SQL through `databricks aitools tools query --warehouse <WH> "..."` to probe typically:
63
63
64
64
-**Cardinality** of candidate grouping columns → decides chart color-group vs. table (≤8 distinct values for charts, see Cardinality & Readability below).
Copy file name to clipboardExpand all lines: experimental/databricks-dbsql/SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -297,4 +297,4 @@ Load these for detailed syntax, full parameter lists, and advanced patterns:
297
297
-**Star schema in Gold layer** for BI; OBT acceptable in Silver
298
298
-**Define PK/FK constraints** on dimensional models for query optimization
299
299
-**Use `COLLATE UTF8_LCASE`** for user-facing string columns that need case-insensitive search
300
-
-**Test SQL via CLI** (`databricks experimental aitools tools query`) or notebooks before deploying. If `--warehouse` is rejected on your CLI version, set `DATABRICKS_WAREHOUSE_ID` in the environment instead.
300
+
-**Test SQL via CLI** (`databricks aitools tools query`) or notebooks before deploying. If `--warehouse` is rejected on your CLI version, set `DATABRICKS_WAREHOUSE_ID` in the environment instead.
Copy file name to clipboardExpand all lines: experimental/databricks-metric-views/SKILL.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,9 @@ Use this skill when:
29
29
30
30
Before authoring a metric view, inspect the source tables. Use `discover-schema` as the default — one call returns columns, types, sample rows, null counts, and row count. If you only know the schema, list tables first with `query "SHOW TABLES IN ..."`.
For dimensions and measures, probe distribution beyond sampling — cardinality of candidate dimensions, min/max/percentiles for measures, top categorical values. Write aggregate SQL through `databricks experimental aitools tools query --warehouse <WH> "..."`. Both commands auto-pick the default warehouse; set `DATABRICKS_WAREHOUSE_ID` or pass `--warehouse <ID>` to override.
34
+
For dimensions and measures, probe distribution beyond sampling — cardinality of candidate dimensions, min/max/percentiles for measures, top categorical values. Write aggregate SQL through `databricks aitools tools query --warehouse <WH> "..."`. Both commands auto-pick the default warehouse; set `DATABRICKS_WAREHOUSE_ID` or pass `--warehouse <ID>` to override.
35
35
36
36
### Create a Metric View
37
37
@@ -157,7 +157,7 @@ DROP VIEW IF EXISTS catalog.schema.orders_metrics;
0 commit comments