Hive查询中的错误

时间:2013-10-27 05:57:08

标签: mysql hadoop syntax hive

此查询的语法有什么问题 -

INSERT overwrite TABLE access_performance_partition
SELECT request
    ,exec_time
    ,rank() OVER (
        PARTITION BY request ORDER BY cast(exec_time AS BIGINT) DESC
        ) AS AddedRank
    ,count(*) OVER (PARTITION BY request) AS RequestCount
FROM access_performance;

显示

-FAILED: Parse Error: line 4:39 mismatched input '(' expecting FROM near 'over' in from clause

1 个答案:

答案 0 :(得分:0)

你有哪个蜂巢版本? 看起来支持从0.11开始,请参阅https://issues.apache.org/jira/browse/HIVE-4048