| 粒度 | 一订单一行 |
|---|---|
| 节点 | 时间戳列 |
| 派生 | 各段耗时与超期标记 |
建流程表
建流程表
CREATE TABLE fact_order_flow (
order_id string,
create_ts timestamp, pay_ts timestamp,
ship_ts timestamp, sign_ts timestamp
);节点时间戳按业务动作取首达时间;取消/关闭单单独标记,不参与时效统计。
订单生命周期(下单-支付-发货-签收)用累积快照一行一单:各节点时间戳 + 各段耗时;未完成节点为空,用于时效与漏斗分析。
| 粒度 | 一订单一行 |
|---|---|
| 节点 | 时间戳列 |
| 派生 | 各段耗时与超期标记 |
CREATE TABLE fact_order_flow (
order_id string,
create_ts timestamp, pay_ts timestamp,
ship_ts timestamp, sign_ts timestamp
);