(BETA) Run ANALYZE TABLE for tables in a database instance
(BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native/PIPE) and external (Iceberg) catalogs. If tableNames is empty, all tables are analyzed.
path Parameters
instanceIdstring · requiredDatabase instance identifier. Accepts the database name (preferred) or UUID.
Database instance identifier. Accepts the database name (preferred) or UUID.
Headers
operation-idstring
Request Body
tableNamesstring[]Table names to analyze. If empty or null, all tables in the database are analyzed.
Responses
Statistics analysis scheduled.
(BETA) List AI Lake pipe tables
(BETA) Lists active pipe tables in the given AI Lake database instance.
path Parameters
instanceIdstring · requiredDatabase instance identifier. Accepts the database name (preferred) or UUID.
Database instance identifier. Accepts the database name (preferred) or UUID.
query Parameters
pagestring · min: 0Zero-based page number.
Zero-based page number.
Default: 0sizestring · min: 1 · max: 500Number of items per page.
Number of items per page.
Default: 50metaIncludestring[] · unique
Responses
AI Lake pipe tables successfully retrieved
dataobject[] · requiredArray of resource items
linksobject · requiredLinks object for a list response
metaobjectMetadata for a paginated list response
(BETA) Create a new AI Lake pipe table
(BETA) Creates a pipe-backed OLAP table in the given AI Lake database instance. Infers schema from parquet files. Returns an operation-id header the client can use to poll for progress.
path Parameters
instanceIdstring · requiredDatabase instance identifier. Accepts the database name (preferred) or UUID.
Database instance identifier. Accepts the database name (preferred) or UUID.
Headers
operation-idstring
Request Body
pathPrefixstring · requiredPath prefix to the parquet files (e.g. 'my-dataset/year=2024/'). All parquet files must be at a uniform depth under the prefix — either all directly under the prefix, or all under a consistent Hive partition hierarchy (e.g. year=2024/month=01/). Mixed layouts (files at multiple depths) are not supported.
sourceStorageNamestring · requiredName of the pre-configured S3/MinIO ObjectStorage source
tableNamestring · requiredName of the OLAP table to create. Must match ^[a-z][a-z0-9_-]{0,62}$
aggregationOverridesobjectMaps non-key column names to their StarRocks aggregation function (SUM, MIN, MAX, REPLACE, REPLACE_IF_NOT_NULL, HLL_UNION, BITMAP_UNION, PERCENTILE_UNION). Required for every non-key column when keyConfig type is 'aggregate'. Ignored for other key types.
columnExpressionsobjectPer-target-column projection overrides. Each entry emits
<function>(<column>) AS <key>in the SELECT list of the generated CREATE PIPE ... AS INSERT; keys absent from the map are projected as-is. Required for AGGREGATE-KEY tables that include native HLL columns (StarRocks rejects raw VARBINARY into HLL columns).columnOverridesobjectOverride inferred column types. Maps column names to SQL type strings (e.g. {"year": "INT", "event_date": "DATE"}). Applied after parquet schema inference.
distributionConfigobjectDistribution configuration for the OLAP table.
keyConfigobjectKey configuration for the table data model.
maxVarcharLengthinteger · int32Cap VARCHAR(N) to this length when N exceeds it. 0 = no cap.
partitionConfigobjectPartition configuration for the table.
pollingIntervalSecondsinteger · int32How often (in seconds) the pipe polls for new files. 0 or null = use server default.
tablePropertiesobjectCREATE TABLE PROPERTIES key-value pairs. Defaults to {"replication_num": "1"}.
Responses
Accepted
(BETA) Get an AI Lake pipe table
(BETA) Returns full details of the specified pipe table.
path Parameters
instanceIdstring · requiredDatabase instance identifier. Accepts the database name (preferred) or UUID.
Database instance identifier. Accepts the database name (preferred) or UUID.
tableNamestring · requiredPipe table name.
Pipe table name.
Responses
AI Lake pipe table successfully retrieved
dataobject · requiredA single JSON:API resource item
linksobject · requiredLinks object for a list response
(BETA) Delete an AI Lake pipe table
(BETA) Drops the pipe and OLAP table and removes the record. Returns an operation-id header the client can use to poll for progress.
path Parameters
instanceIdstring · requiredDatabase instance identifier. Accepts the database name (preferred) or UUID.
Database instance identifier. Accepts the database name (preferred) or UUID.
tableNamestring · requiredPipe table name.
Pipe table name.
Headers
operation-idstring
Responses
Accepted
(BETA) Refresh a pipe table partition
(BETA) Deletes all rows for the specified Hive partition and re-loads them from S3. Use after overwriting a partition file in object storage with corrected data. Returns an operation-id header the client can use to poll for progress.
path Parameters
instanceIdstring · requiredDatabase instance identifier. Accepts the database name (preferred) or UUID.
Database instance identifier. Accepts the database name (preferred) or UUID.
tableNamestring · requiredPipe table name.
Pipe table name.
Headers
operation-idstring
Request Body
partitionSpecobject · requiredPartition column values identifying the partition to refresh. Keys must match the table's partition_columns exactly. Example: {"date": "2026-01-01"}
Responses
Accepted