datatestool/examples/requirements/customer_etl.md

653 B
Raw Blame History

客户主题 ETL 加工需求

任务名称:客户主题明细加工。

源表为 ods.ods_customer,目标表为 dwd.dwd_customer_info

字段映射:

  • customer_id 映射到 cust_id,必须非空且唯一。
  • customer_name 映射到 cust_name,去除首尾空格。
  • status 映射到 cust_status1 转换为 ACTIVE0 转换为 INACTIVE
  • age 映射到 age,合法范围为 0 到 120。
  • updated_at 映射到 updated_at

仅装载 is_deleted = 0 的有效客户。目标表数据量应与有效源数据量一致。每天按业务日期执行,历史数据量环比波动不得超过 30%。