refresh tbl_nm;刷新表
refresh tbl_nm partition(pt=xx); 刷新分区
invalidate metadata;刷新库
invalidate metadata table_nm;刷新表
msck repair table tablename 修复表分区
desc tbl_nm; 看表结构
describe extended tbl_nm; 看表结构
show create table tbl_nm; 看DDL
show partitions tbl_nm;看分区
show files in tbl_nm; 看表的hdfs路径下的数据文件列表,大小,所属分区
show tables;所有表
show schemas;所有库
show databases;所有库
show functions;所有函数
show roles; 所有角色(不是账号)
show current roles;当前角色
impala: split_part函数 (根据分隔符找返回index)