hive sql报错

1.hive sql 报错

FAILED: ParseException line 22:0 cannot recognize input near '' '' '' in subquery source

2.解决

select * 
from
(
    select 
    	... 
    from 
		table_1
    where 
    	...
) table_outer
嵌套的内层的表一定要有别名,也就是示例代码中的表名table_outer

你可能感兴趣的:(大数据,Hive,SQL,精进系列)