20260715_tmp_trd_card_group_info_2026dump.ini 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ; 作者:tianyu.chu
  2. ; 日期:2026-07-15
  3. ; 工单:(无)
  4. ; 目的:一次性拉拼团 5/18 后活跃记录(当前态)到中转表 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. ; 窗口:拼团历史块(raw dt=20211027)覆盖 create≤5/18,本 dump 只刷 5/18 之后
  12. ; 运行(无 -backfill,单 job):
  13. ; python3 bin/datax-hive-import-starter.py \
  14. ; -ini manual/backfill/20260715_tmp_trd_card_group_info_2026dump.ini \
  15. ; -start-date 20260716 -stop-date 20260717
  16. ; 说明:${dt}=start_date(runner.py),传 -start-date 20260716 让数据落 dt=20260716;
  17. ; where 硬编码日期不吃 ${start_date},-stop-date 仅占位。
  18. [reader]
  19. dataSource = postgresql/prd-poyee-aliyun
  20. database = hobby_stocks
  21. table = public.card_group_info
  22. 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
  23. columnType =
  24. where = COALESCE(update_time, create_time) >= '2026-05-18'
  25. querySql =
  26. splitPk = id
  27. fetchSize = 1000
  28. [writer]
  29. dataSource = hdfs/prd-hdfs-ha
  30. path = /user/hive/warehouse/raw.db/tmp_trd_card_group_info/dt=${dt}/
  31. 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
  32. columnType =
  33. fileType = orc
  34. fileName = tmp_trd_card_group_info
  35. encoding = UTF-8
  36. writeMode = truncate
  37. fieldDelimiter = \t