| 小维 | 不分区分桶 |
|---|---|
| 版本维 | 按更新时间或当前标志分区 |
| 格式 | ORC/Parquet + 压缩 |
按当前标志分区
按当前标志分区
CREATE TABLE dim_customer (
customer_sk bigint, customer_id string, name string, start_date date, end_date date
)
PARTITIONED BY (is_current int)
STORED AS ORC;is_current 分区让当前查询只扫一个分区,历史查询仍可全扫。