(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 all 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.
Responses
AI Lake pipe tables successfully retrieved
pipeTablesobject[] · requiredPipe tables in the requested database
(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.
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
columnsobject[] · requiredInferred column schema
databaseNamestring · requiredDatabase name
distributionConfigrequiredkeyConfigrequiredpartitionColumnsstring[] · requiredHive partition columns detected from the path structure
pathPrefixstring · requiredPath prefix to the parquet files
pipeTableIdstring · requiredInternal UUID of the pipe table record
pollingIntervalSecondsinteger · int32 · requiredHow often (in seconds) the pipe polls for new files. 0 = server default.
sourceStorageNamestring · requiredSource ObjectStorage name
tableNamestring · requiredOLAP table name
tablePropertiesobject · requiredCREATE TABLE PROPERTIES key-value pairs
partitionConfig
(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