datatestool/examples/requirements/customer_etl.md

16 lines
653 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 客户主题 ETL 加工需求
任务名称:客户主题明细加工。
源表为 `ods.ods_customer`,目标表为 `dwd.dwd_customer_info`
字段映射:
- `customer_id` 映射到 `cust_id`,必须非空且唯一。
- `customer_name` 映射到 `cust_name`,去除首尾空格。
- `status` 映射到 `cust_status``1` 转换为 `ACTIVE``0` 转换为 `INACTIVE`
- `age` 映射到 `age`,合法范围为 0 到 120。
- `updated_at` 映射到 `updated_at`
仅装载 `is_deleted = 0` 的有效客户。目标表数据量应与有效源数据量一致。每天按业务日期执行,历史数据量环比波动不得超过 30%。