Partitions can refer to one or more columns, possibly with transformations such as hashing or bucketing.
Column name | Column type | |
---|---|---|
partition_id |
BIGINT |
|
table_id |
BIGINT |
|
partition_key_index |
BIGINT |
|
column_id |
BIGINT |
|
transform |
VARCHAR |
partition_id
refers to apartition_id
from theducklake_partition_info
table.table_id
refers to atable_id
from theducklake_table
table.partition_key_index
defines where in the partition key the column is. For example, in a partitioning by (a
,b
,c
) thepartition_key_index
ofb
would be1
.column_id
refers to acolumn_id
from theducklake_column
table.transform
defines a SQL-level expression to transform the column value, e.g. hashing.