Apache Tajo - first_value(值)



现在让我们使用以下查询检查first_value(value)函数。

查询

sampledb> select first_value(mark) over (order by name) as firstvalue from mytable; 

结果

以上查询将生成以下结果。

firstvalue 
------------------------------- 
90 
90 
90 
90 
90 
90 
90 
90 
90 
90 

使用first_value()函数,将替换 Mark 列中的所有 90 初始值。

apache_tajo_aggregate_and_window_functions.htm
广告
© . All rights reserved.