創建parquet 表指定 snappy 壓縮 語句

create table `t_hive_dm_pv_count`(
`source_name` string,
`pv` bigint,
`s_time` timestamp,
`acct_hour` timestamp,
`ypl_code` bigint,
`ypl_third_code` bigint
)
PARTITIONED BY (`acct_day` string)
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
WITH SERDEPROPERTIES (
'field.delim'='\t',
'line.delim'='\n',
'serialization.format'='\t')
 STORED AS PARQUET  TBLPROPERTIES('parquet.compression'='SNAPPY');

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章