Hadoop - Hive 2 ParseException - 无法识别' over'附近的输入。 '('''在表达式规范中

时间:2015-05-11 18:54:50

标签: hadoop hive

自从我的查询中升级到Hive 2后,这行未能给我FAILED: ParseException line 41:50 cannot recognize input near 'over' '(' 'partition' in expression specification

select tempTable.*, (tempTable.rowrank - 1)/(max(tempTable.tableRowRank)) over (partition by tempTable.column1) percent

这在Hive Server 1中运行良好

???????

1 个答案:

答案 0 :(得分:1)

只需要解决类似的问题

select tempTable.*, (tempTable.rowrank - 1)/(max(tempTable.tableRowRank) over (partition by tempTable.column1))/*<===== Close here*/ as percent