1. 脚本例子1
建表mytable,
partition 就是按 rcd_date 也就是 record date 时间来分区,
用’\t’ 作为row的分隔符。
create table if not exists mydb.mytable (
event string COMMENT'####' ,
info_id string COMMENT'#### ' ,
session_id string COMMENT'###'
) partitioned by (rcd_date string) row format delimited fields terminated by '\t';
</