set hive.exec.dynamic.partition=true;--是否允许动态分区
set hive.exec.dynamic.partition.mode=nonstrict;--分区模式设置
set spark.sql.adaptive.enabled=true;
set spark.sql.adaptive.shuffle.targetPostShuffleInputSize=128MB;
with v_is_freight_outstanding_cust as(
select sum(un_receive_fee_amount) as un_receive_fee_amount, /**未收款额**/
sum(market_cushion_amount) as market_cushion_amount, /**垫款金额**/
payment_customer_id,
dmonth
from table
group by bill_base.payment_customer_id,bill_base.dmonth
)
insert overwrite table dws_biz.dws_biz_customer_cm partition(dmonth)
select *
from v_is_freight_outstanding_cust
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- awee.cn 版权所有 湘ICP备2023022495号-5
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务