在使用datagrip写hive时出现cannot recognize input near '<EOF>' '<EOF>' '<EOF>' in subquery source的错误,这是不能识别子查询。
解决: 给每个子查询都起别名
例如:

#这个就会报上述错误
select * from (select * from a) 
#正解:给子查询起别名
select * from (select * from a) b

更多推荐