数据资产
日班次 stg_wps_work_shift
该表主要根据work_shift_no记录不同班次,常用字段work_shift_no、work_begin_time、work_end_time
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| create external table if not exists stg_wps_work_shift ( id string comment '主键', work_shift_no string comment '编号', sap_no string comment 'SAP系统中班次编码', valid_date_begin string comment '生效开始日期', valid_date_end string comment '生效日期结束', work_shift_name string comment '班次名称', work_begin_time string comment '班次开始时间', work_end_time string comment '班次结束时间', work_begin_time_tolerance string comment '班次开始时间容差', work_end_time_tolerance string comment '班次结束时间容差', rest_begin_time string comment '班次休息开始时间', rest_end_time string comment '班次休息结束时间', create_time string comment '创建时间', edit_time string comment '修改时间', delete_flag string comment '删除标识(0-未删除;1-已删除)' ) comment '日班次' partitioned by ( dt string comment '分区日期', et string comment '服务名称' ) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\\u0001' STORED AS TEXTFILE LOCATION 'hdfs://prd-bd66110-zazk02.hd:8020/apps/hive/warehouse/stg.db/stg_wps_work_shift' TBLPROPERTIES ( 'comment' = '日班次', 'transient_lastDdlTime' = '1744104088', 'bucketing_version' = '2', 'text.compress' = 'BZIP2' );
|