2023-04-13 处理数据倾斜

INSERT OVERWRITE TABLE fin_dw.dwd_cdplabel_jt_market_strategy_info_pda PARTITION (pday= '${yesterday_p}')

SELECT  id,

        plan_id,

        plan_name,

        strategy_id,

        strategy_name,

        comp_person_num,

        task_status,

        person_num,

        person_name,

        trigger_type,

        no_send_type,

        user_no,

        totals,

        trigger_time,

        talk_length,

        trigger_status,

        task_id,

        bag_class,

        template_code,

        template_content,

        create_time,

        create_date

FROM  credit_data.temp_fin_jt_dwb_market_strategy_info_d_type

DISTRIBUTE BY PMOD(HASH(10000*rand()), 1500) ;


参考:https://zhuanlan.zhihu.com/p/252776975

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容