hive分区字段内容能是中文吗,
假如说我用sex分区,但是我的数据是‘男’or‘女’是不是要换成1和0才能分区
可以呀,根据自己的需求指定就行了!但是一般情况用string的!比如:use dw;drop table if exists xxxxx;CREATE TABLE xxxxx (time string,user_id int,keyword string)comment "记录表"partitioned by (ds string, hour string, type int)stored as textfile;
下一篇:c语言动态分配内存
上一篇:j=j*10;c语言,求教何意
热门标签: