ITPub博客

首页 > 大数据 > 数据分析 > 带分区拷贝数据(自动创建分区)

带分区拷贝数据(自动创建分区)

原创 数据分析 作者:liuhongwei 时间:2021-03-17 15:21:06 0 删除 编辑


set hive.exec.dynamic.partition=true; 

set hive.exec.dynamic.partition.mode=nonstrict; 

set hive.support.quoted.identifiers=none; 

set hive.exec.dynamic.partition=true; 

set hive.exec.dynamic.partition.mode=nonstrict; 

set hive.exec.max.dynamic.partitions=1000000;

set hive.exec.max.dynamic.partitions.pernode=1000000;

set hive.execution.engine=spark;

INSERT INTO  table  dm.dm_contract_overdue_dtl_day partition (p_day_id)

SELECT

contract_id, 

borrow_name, 

finan_product, 

active_date , 

car_type, 

car_price, 

car_exprice, 

od_days, 

loan_money, 

unpaid_money, 

loan_period, 

od_period, 

paid_period, 

month_money, 

should_period, 

should_interest, 

should_money, 

car_dealer, 

penalty, 

fee, 

car_status, 

service_type, 

applicationno,

p_day_id

FROM DM.DM_CALLTASK_DAY WHERE p_day_id<20210316


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69996462/viewspace-2763337/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 数据库3范式详解
下一篇: 根据偏移量分组
请登录后发表评论 登录
全部评论

注册时间:2021-03-15

  • 博文量
    8
  • 访问量
    7055