Apache-tajo-first-value

提供:Dev Guides
移動先:案内検索

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

Mark列の最初の値90は、* first_value()*関数を使用してすべての行で置き換えられます。