| 冗余列 | cat_l1 / cat_l2 / cat_l3 |
|---|---|
| 品牌 | brand_sk 或冗余名 |
| 拆分 | 规格高频属性拆子维 |
建商品维
建商品维
CREATE TABLE dim_product (
product_sk bigint,
product_id string,
product_name string,
cat_l1 string, cat_l2 string, cat_l3 string,
brand string
) STORED AS ORC;冗余类目路径可让 BI 单表下钻,代价是类目调整时要重刷该列。