hql 执行顺序
FROM (ON) (JOIN)
WHERE
GROUP BY
HAVING
SELECT (DISTINCT) (DISTRIBUTE BY)/(CLUSTER BY)/(SORT BY)
ORDER BY (LIMIT) (UNION)/(UNION ALL)
解析得到的类型
use default
TOK_SWITCHDATABASE
create table
TOK_CREATETABLE
set hive.exec.compress.output=false
not support
set hivevar:ds=2016-01-01;
not suppoort
test nott support
insert overwrite table test1 select id from test2
TOK_QUERY
with 语句 TOK_QUERY
alter table TOK_ALTERTABLE
drop table TOK_DROPTABLE
truncatee tablee TOK_TRUNCATETABLE
TOK_SWITCHDATABASE TOK_QUERY TOK_CREATETABLE TOK_TRUNCATETABLE TOK_DROPTABLE TOK_ALTERTABLE
hive 执行计划
https://www.2cto.com/net/201701/587186.html
Hive SQL执行计划深度解析