20260715_tmp_trd_card_group_info_2026dump.ini 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ; 作者:tianyu.chu
  2. ; 日期:2026-07-15
  3. ; 工单:(无)
  4. ; 目的:一次性拉拼团 2026 活跃记录(当前态)到中转表 raw.tmp_trd_card_group_info 单分区 dt=20260716
  5. ; 替代逐段补数 —— 一个 DataX job 灌完,交给 ODS 动态分区重分桶
  6. ; 状态:[待执行]
  7. ;
  8. ; 配套 DDL:manual/ddl/raw/trd/tmp_trd_card_group_info_create.sql
  9. ; 配套 ODS:manual/backfill/20260715_ods_trd_card_group_info_2026rebucket.sql
  10. ;
  11. ; 窗口:COALESCE≥2026-01-01 全 2026 活跃单(与订单表一致);与历史块(raw dt=20211027, create≤5/18)
  12. ; 在 Jan~5/18 有重叠,ODS 按 (pk, ods_dt) 去重/OVERWRITE 兜住,保证 2026 各日均为当前态
  13. ; 运行(无 -backfill,单 job):
  14. ; python3 bin/datax-hive-import-starter.py \
  15. ; -ini manual/backfill/20260715_tmp_trd_card_group_info_2026dump.ini \
  16. ; -start-date 20260716 -stop-date 20260717
  17. ; 说明:${dt}=start_date(runner.py),传 -start-date 20260716 让数据落 dt=20260716;
  18. ; where 硬编码日期不吃 ${start_date},-stop-date 仅占位。
  19. [reader]
  20. dataSource = postgresql/prd-poyee-aliyun
  21. database = hobby_stocks
  22. table = public.card_group_info
  23. column = id,merchant_id,appid,name,code,status,specs,type,random_type,total_price,copies,unit_price,sold_copies,release_time,cycle,show_applet,title,msg,remark,create_time,update_by,update_time,order_quota_min,order_quota_max,user_quota_max,start_time,marketing_info,reviewmsg,lock,commission_rate,year,sport,manufacturer,sets,act,config,info_config,total_num,banner_end_time,add_banner,finished_time,display_name,group_sets_no,close_payment_time,confirm_send_time,close_payment_status,open_card,close_payment_record,group_full_time,live_create_time,live_start_time,live_end_time,report_start_time,report_end_time,report_review_num,report_review_first_time,report_review_end_time,review_hold_time,review_approval_time,review_num,config_json,free_flag,mer_name,change_type,act_price,act_config_json,real_sold_num,weight,hot_type,team_first,prop1,prop2,prop3,point_rate,point_max,point_min,list_id,list_code,mix_copies,sub_type,act_point_type,payment_method,payment_total_price,payment_commission,payment_finished_price,payment_remain_price,payment_online_price,exclusive,has_bg,merchant_sort,del_flg,del_time,review_account,act_id,sold_end_time,panini_list_id,hot_type_config,goods_type,report_flag,use_coupon,user_level,custom,gift_card_id,group_show_name,min_card_num,act_type,waring_type,compensation_status,point_type,first_act_config,gift_config,version,extra_prop,use_member_discount,merchant_open
  24. columnType =
  25. where = COALESCE(update_time, create_time) >= '2026-01-01'
  26. querySql =
  27. splitPk = id
  28. fetchSize = 1000
  29. [writer]
  30. dataSource = hdfs/prd-hdfs-ha
  31. path = /user/hive/warehouse/raw.db/tmp_trd_card_group_info/dt=${dt}/
  32. column = id,merchant_id,appid,name,code,status,specs,type,random_type,total_price,copies,unit_price,sold_copies,release_time,cycle,show_applet,title,msg,remark,create_time,update_by,update_time,order_quota_min,order_quota_max,user_quota_max,start_time,marketing_info,reviewmsg,lock,commission_rate,year,sport,manufacturer,sets,act,config,info_config,total_num,banner_end_time,add_banner,finished_time,display_name,group_sets_no,close_payment_time,confirm_send_time,close_payment_status,open_card,close_payment_record,group_full_time,live_create_time,live_start_time,live_end_time,report_start_time,report_end_time,report_review_num,report_review_first_time,report_review_end_time,review_hold_time,review_approval_time,review_num,config_json,free_flag,mer_name,change_type,act_price,act_config_json,real_sold_num,weight,hot_type,team_first,prop1,prop2,prop3,point_rate,point_max,point_min,list_id,list_code,mix_copies,sub_type,act_point_type,payment_method,payment_total_price,payment_commission,payment_finished_price,payment_remain_price,payment_online_price,exclusive,has_bg,merchant_sort,del_flg,del_time,review_account,act_id,sold_end_time,panini_list_id,hot_type_config,goods_type,report_flag,use_coupon,user_level,custom,gift_card_id,group_show_name,min_card_num,act_type,waring_type,compensation_status,point_type,first_act_config,gift_config,version,extra_prop,use_member_discount,merchant_open
  33. columnType =
  34. fileType = orc
  35. fileName = tmp_trd_card_group_info
  36. encoding = UTF-8
  37. writeMode = truncate
  38. fieldDelimiter = \t