Skip to main content
VeloDB Cloud 26.x is based on Apache Doris 4.x. See Version Mapping.

table_options

Inspect table models, distribution keys, bucket counts, and partition counts. Internal tables expose these options, while external tables return empty option fields and zero counts.

Run the query in the warehouse SQL Editor or a connected SQL client:

SELECT * FROM information_schema.table_options LIMIT 10;

Database​

information_schema

Table information​

Column nameTypeDescription
TABLE_CATALOGvarchar(64)Table catalog.
TABLE_SCHEMAvarchar(64)Table schema.
TABLE_NAMEvarchar(64)Table name.
TABLE_MODELstringTable model, such as Duplicate Key, Aggregate Key, or Unique Key.
TABLE_MODEL_KEYstringKey columns for the table model.
DISTRIBUTE_KEYstringDistribution key columns, or RANDOM for random distribution.
DISTRIBUTE_TYPEstringDistribution method, such as HASH or RANDOM.
BUCKETS_NUMintConfigured bucket count.
PARTITION_NUMintNumber of partitions.

Use DESCRIBE information_schema.table_options; to inspect the schema in your warehouse.