自从我的查询中升级到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中运行良好
???????
答案 0 :(得分:1)
只需要解决类似的问题
select tempTable.*, (tempTable.rowrank - 1)/(max(tempTable.tableRowRank) over (partition by tempTable.column1))/*<===== Close here*/ as percent