---------------- 2018-11-20-----------------
新增分区表的字段
alter table tableName
add columns(columnA string)
alter table tableName partition(partition_name=‘dt’)
add columns(columnA string)
-----------------2018-11-22--------------------
explain + sql 可以查看SQL语句执行过程
hive命令行的一些操作
https://blog.csdn.net/scgaliguodong123_/article/details/46868525
----------------2019-10-12----------------------
hive 中的 不等于 会将 null的数据过滤掉
例如:
where columnA != ‘是’
会将 columnA 为 NULL的数据过滤掉
----------------2019-10-18----------------------
impala 默认配置的时区不是中国的时区
会比中国的时间早8个小时,有8个小时时差。
from_unixtime(cast( 时间戳 /1000 as bigint),‘yyyy-MM-dd’)
解决方案: 1.可以使用时间函数 加8个小时
2.可以修改impala的配置时区