Hive 使用窗口时配置单元查询出错
在这样做的时候Hive 使用窗口时配置单元查询出错,hive,Hive,在这样做的时候 select first_value(id) over(partition by id rows between 1 precending and 1 following) from college; 查询错误为 失败:ParseException行1:43无法识别附近的输入 窗口框架边界中的“前序”和“1” 欢迎来到StackOverflow!我认为您需要在之间的行之前添加orderby和ordering列。有关更多信息,是否有输入错误它应该在前面
select
first_value(id) over(partition by id rows between 1 precending and 1 following)
from college;
查询错误为
失败:ParseException行1:43无法识别附近的输入
窗口框架边界中的“前序”和“1”
欢迎来到StackOverflow!我认为您需要在之间的
行之前添加orderby
和ordering列。有关更多信息,是否有输入错误它应该在前面