Information Schema
List tables and their columns.
List tables
GET
/v1/information_schemaList tables, with optional filters and pagination. schema and table accept SQL % wildcards. Set include_columns=true to include each table's columns.
Each table reports its partition_by and sorted_by layout, which is fixed when the table is created. An empty array means none was set. An API key limited to one database must pass that database's connection_id.
Query parameters
| Name | Type | Description |
|---|---|---|
connection_id | string | Filter by connection ID |
schema | string | Filter by schema name (supports % wildcards) |
table | string | Filter by table name (supports % wildcards) |
include_columns | boolean | Include each table's columns. Default: false. |
limit | integer | Tables per page. Default 100, maximum 1000. |
cursor | string | The next_cursor from the previous page |
Response 200 — Table metadata
| Name | Type | Description |
|---|---|---|
count (required) | integer | Number of tables on this page, not the total. An empty tables array does not mean the listing is finished: check has_more. |
has_more (required) | boolean | Whether more tables follow. Fetch them with next_cursor. |
limit (required) | integer | Page size used: the limit you sent, capped at the maximum, or the default when omitted. |
next_cursor | string | Cursor for the next page, present only when has_more is true. Pass it as the cursor query parameter. |
tables (required) | TableInfo[] | Tables on this page. |
Fields of tables
| Name | Type | Description |
|---|---|---|
tables[].columns | ColumnInfo[] | Table columns. Present only when the request sets include_columns=true. |
tables[].columns[].data_type (required) | string | Column type, such as Int64, Utf8 or Timestamp(µs). |
tables[].columns[].name (required) | string | Column name. |
tables[].columns[].nullable (required) | boolean | Whether the column can hold nulls. |
tables[].connection (required) | string | Name of the connection that holds the table. |
tables[].constant_per_key (required) | string[] | Columns that hold the same value for every row sharing a key, which lets keyed mutations search fewer files; empty when none are declared. Unlike partition_by and sorted_by, this can change after creation. |
tables[].last_sync | string | When the table's data was last loaded or synced; null if never. |
tables[].layout (required) | TableLayout | How a table's data files are written. Set when the table is created and fixed after that. - analytical (default): data pages sized for scans. - point_lookup: small data pages, so fetching rows by ID is cheap, as vector search results do. Scans of the table read more pages. |
tables[].partition_by (required) | TablePartitionKey[] | Partition keys, in the order declared when the table was created; empty when it is not partitioned. Reported only for tables in a Hotdata-instant database: other tables always return an empty array. |
tables[].partition_by[].column (required) | string | Column the key reads. |
tables[].partition_by[].transform (required) | string | How the key is derived from the column: identity (the value itself), year, month, day or hour. |
tables[].schema (required) | string | Schema name. |
tables[].sorted_by (required) | TableSortKey[] | Sort keys, in the order declared when the table was created; empty when none were declared. Reported only for tables in a Hotdata-managed database, like partition_by. |
tables[].sorted_by[].column (required) | string | Column to sort by. |
tables[].sorted_by[].direction | string | asc (default) or desc. Null in a response when it was not set. |
tables[].sorted_by[].nulls | string | Where nulls go: first or last. Defaults to last for asc and first for desc; null in a response when it was not set. |
tables[].synced (required) | boolean | Whether the table has data loaded. |
tables[].table (required) | string | Table name. |
Example response
{
"count": 0,
"has_more": true,
"limit": 0,
"next_cursor": "string",
"tables": [
{
"columns": [
{}
],
"connection": "string",
"constant_per_key": [
"string"
],
"last_sync": "string",
"layout": "analytical",
"partition_by": [
{}
],
"schema": "string",
"sorted_by": [
{}
],
"synced": true,
"table": "string"
}
]
}
Errors
| Status | Description |
|---|---|
403 | The API key is limited to one database, and connection_id does not name that database's connection |
404 | Connection not found |