版权声明:文人萧扬_ https://blog.csdn.net/ILoveZhc/article/details/82498393
1.如何创建hive表
create table temp.test1
(
id string,
name string
)partitioned by(src_file_day string)
stored as parquet;
关于partition请参考:Hive partition
2.我们在做hive的表的时候,如果我们要保留几位小数,首先想到的就是round函数,但是,如果我们计算的指标数据量很大,那么就会出现科学计数法,往往我们不需要用科学计数法,我们可以用cast( zhibiao as decimal(n,m)) n是总的位数,m是需要保留的小数位数
3.hive修改 表/分区语句
链接:https://blog.csdn.net/zhangzhongzhong/article/details/65632583