gpt4 book ai didi

mysql - Hive 查询中的错误

转载 作者:行者123 更新时间:2023-11-30 01:08:27 26 4
gpt4 key购买 nike

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

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

最佳答案

您拥有哪个 Hive 版本?貌似从0.11开始就支持了,见https://issues.apache.org/jira/browse/HIVE-4048

关于mysql - Hive 查询中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19615127/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com