Chalk SQL
Find and query Chalk tables, offline store data, and connected data sources.
Use catalog.schema.table to reference a table in Chalk SQL. For example, in
chalk.online_store.keys, chalk is the catalog, online_store is the schema,
and keys is the table.
To invoke deployed functions in a query, see Call Chalk Functions from SQL.
Chalk exposes its own views in the chalk catalog. The offline_store catalog
and each supported, named data source are top-level catalogs alongside chalk.
The tables you can query depend on your deployment and connected stores.
| What you want to query | Example table |
|---|---|
| Online store keys or the latest stored features for an entity | chalk.online_store.keys or chalk.online_store.user |
| Historical observations for a feature | chalk.historical_values."user.name" |
| Results from the latest revision of a named dataset | chalk.datasets.my_users_dataset |
| Spans, traces, or agent sessions | chalk.telemetry.spans |
| Schedules or run history | chalk.jobs or chalk.job_runs |
| Recorded query metadata | chalk.query_log.data |
| Tables in the warehouse backing your offline store | offline_store.my_schema.my_table |
| Tables in a connected database or warehouse | my_postgres.public.users or my_bigquery.my_dataset.transactions |
Open the Databases tab in the SQL Explorer
to browse catalogs, schemas, tables, and columns. In SQL, run
SHOW TABLES to list tables.
Query chalk.information_schema.tables to filter by catalog or schema.
SELECT
catalog_name,
schema_name,
table_name
FROM
chalk.information_schema.tables
WHERE
catalog_name = 'chalk'
AND schema_name = 'online_store'
ORDER BY
table_name;Use DESCRIBE chalk.online_store.keys to inspect the columns of that table
when the online store exposes it.