Skip to content

Compute table statistics

POST
/dataset-tables/{tableId}/statistics

Compute statistics for the table to optimize query planning. Returns an operation for tracking progress.

tableId
required

Unique identifier of the table to retrieve

string

Unique identifier of the table to retrieve

Statistics computation started

object
operationId
required

Unique identifier for the operation

string
operationType
required

Type of operation (compact, build_index, etc.)

string
targetType
required

Type of target resource (table, index)

string
targetId
required

ID of the target resource

string
description
required

Human-readable description of the operation

string
status
required

Current operation status (pending, running, succeeded, failed)

string
Allowed values: pending running completed failed cancelled
progressPercent
required

Progress percentage (0-100)

number
progressMessage

Human-readable progress message

string
error

Error details if operation failed

object
code
required

Error code

string
message
required

Human-readable error message

string
createdAt
required

When the operation was created

string
startedAt

When the operation started running

string
completedAt

When the operation completed

string

Bad Request - Validation error or invalid input

object
error
required
string
code
string
details
nullable
retryable
boolean

Unauthorized - Authentication required or invalid token

object
error
required
string
code
string
details
nullable
retryable
boolean

Forbidden - Insufficient permissions

object
error
required
string
code
string
details
nullable
retryable
boolean

Not Found - Resource does not exist

object
error
required
string
code
string
details
nullable
retryable
boolean