CREATE VIEW dwd_evt_serv_matt_node_inst_c_new PARTITIONED ON ( pt_biz_date ) AS SELECT
a.rid,
a.serv_matt_node_inst_id,
a.wflw_task_id,
a.serv_matt_inst_id,
a.wflw_prcs_id,
a.seq,
a.serv_matt_no,
a.serv_matt_name,
a.serv_matt_node_no,
a.serv_matt_node_name,
a.ptcp,
a.ptcp_type,
a.ptcp_poolarea,
a.ptcp_optins,
a.crt_prosstas,
a.ot_flag,
a.serv_matt_node_begntime ,
a.serv_matt_node_endtime ,
a.opter_id ,
a.opter_name ,
a.opt_time ,
a.optins_no ,
a.poolarea_no ,
a.memo ,
a.updt_time ,
a.crte_time,
a.ptcp_name,
a.biz_date,
a.deleted_time,
a.deleted,
a.exch_updt_time,
a.subsys_codg,
a.admdvs,
a.dty_detail,
d.trans_code as opt_chnl,
a.pt_biz_date --分区知道必须在最后不然会报错
FROM
dw_dwd.dwd_evt_serv_matt_node_inst_c a
LEFT JOIN mds_view_prod.dim_dic_trans d ON a.opt_chnl = d.source_code
AND d.type = ‘OPT_CHNL_OMS’
分区视图创建
最新推荐文章于 2024-07-25 16:06:56 发布