Create Table
create-tablePurpose: Create an empty RawTree table in a database.
Instructions
Purpose: Create an empty RawTree table in a database.
Returns: The database and table names, the resolved storage destination, and the table's sorting key.
Behavior: The table uses the database's storage when the database configures one, and the cluster's default storage otherwise. Storage is configured on the cluster or the database, never per table.
Sorting key: sortingKey is an optional string of comma-separated SQL expressions. Omit it and the table picks a sorting key per part from the ingested data, which suits exploratory tables. Set it when the query pattern is known, listing expressions in key order, lowest cardinality first. Use update-table to change it later.
Auth: Requires organization admin access. Authorization is enforced by the RawTree API.
Reliability: If the response is ambiguous, call list-tables to reconcile by database and table name before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the table to create. | |
| cluster | No | RawTree cluster to use for this operation. | |
| database | No | Optional RawTree database override. RawTree uses the default database when omitted. | |
| sortingKey | No | Optional comma-separated SQL sorting expressions in key order. Omit it to let the table pick a key per part from the ingested data. | |
| organization | No | RawTree organization containing the target cluster. |