背景:
我们使用submit 的方式,280G的数据10分钟写入主键模型,但是800G的写不进去,贴源数据是按天分区的,现在是把800G的数据按照半年的时间使用 SUBMIT
报错信息如下:
Total byte size of binary column exceed the limit: 4294967296
SUBMIT TASK loin_insert_202307 AS
insert into bidw.XW_DYMID_REPAY_PLAN
(cur_date
,fx_account_id
,loan_id
,term_no
,start_date
,billing_date
,end_date
,clear_date
,term_status
,prin_total
,prin_repay
,prin_bal
,int_total
,int_bal
,int_repay
,cycle_int_total
,cycle_int_repay
,cycle_int_bal
,pnlt_int_total
,pnlt_int_repay
,pnlt_int_bal
,pre_pmt_fee_repay
,days_ovd
,capital_set_no
,DATE_TIME
,PART_DATE
)
select
CUR_DATE,
FX_ACCOUNT_ID,
LOAN_ID,
TERM_NO,
START_DATE,
BILLING_DATE,
END_DATE,
CLEAR_DATE,
TERM_STATUS,
PRIN_TOTAL,
PRIN_REPAY,
PRIN_BAL,
INT_TOTAL,
INT_BAL,
INT_REPAY,
CYCLE_INT_TOTAL,
CYCLE_INT_REPAY,
CYCLE_INT_BAL,
PNLT_INT_TOTAL,
PNLT_INT_REPAY,
PNLT_INT_BAL,
PRE_PMT_FEE_REPAY,
DAYS_OVD,
CAPITAL_SET_NO,
now(),
PART_DATE
from (
select
CUR_DATE,
FX_ACCOUNT_ID,
LOAN_ID,
TERM_NO,
START_DATE,
BILLING_DATE,
END_DATE,
CLEAR_DATE,
TERM_STATUS,
PRIN_TOTAL,
PRIN_REPAY,
PRIN_BAL,
INT_TOTAL,
INT_BAL,
INT_REPAY,
CYCLE_INT_TOTAL,
CYCLE_INT_REPAY,
CYCLE_INT_BAL,
PNLT_INT_TOTAL,
PNLT_INT_REPAY,
PNLT_INT_BAL,
PRE_PMT_FEE_REPAY,
DAYS_OVD,
CAPITAL_SET_NO,
dw_tx_dt as part_date ,
row_number() over(partition by LOAN_ID, TERM_NO order by cur_date desc) as rn
from bistg.DRXW_DYMID_REPAY_PLAN_TEMP1
where dw_tx_dt >= str_to_date(‘20230601’,’%Y%m%d’) and dw_tx_dt <= str_to_date(‘20230701’,’%Y%m%d’)
)a where rn = 1