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 name | Type | Description |
|---|---|---|
TABLE_CATALOG | varchar(64) | Table catalog. |
TABLE_SCHEMA | varchar(64) | Table schema. |
TABLE_NAME | varchar(64) | Table name. |
TABLE_MODEL | string | Table model, such as Duplicate Key, Aggregate Key, or Unique Key. |
TABLE_MODEL_KEY | string | Key columns for the table model. |
DISTRIBUTE_KEY | string | Distribution key columns, or RANDOM for random distribution. |
DISTRIBUTE_TYPE | string | Distribution method, such as HASH or RANDOM. |
BUCKETS_NUM | int | Configured bucket count. |
PARTITION_NUM | int | Number of partitions. |
Use DESCRIBE information_schema.table_options; to inspect the schema in your warehouse.