次の例では、一般的に、凝集体はヌルを無視する傾向がある、ので、私は結果BigQueryの、FIRST_VALUE、およびヌル
Row a b f0_
1 1 1 3
2 1 2 3
3 1 3 5
4 1 4 5
5 1 5 null
を期待しているだろう。 FIRST_VALUE
はNULLを無視しない場合は、使用上のどのような価値を持っているんLEAD
例:
select a, b, first_value(c) over (partition by a order by b asc rows BETWEEN 1 following AND UNBOUNDED FOLLOWING)
from
(select 1 as a, 1 as b, 1 as c),
(select 1 as a, 2 as b, null as c),
(select 1 as a, 3 as b, 3 as c),
(select 1 as a, 4 as b, null as c),
(select 1 as a, 5 as b, 5 as c),
が
Row a b f0_
1 1 1 null
2 1 2 3
3 1 3 null
4 1 4 5
5 1 5 5
[Big Queryで値の列から最初のNULL値を取得する方法は?](http://stackoverflow.com/questions/32788958/how-to-get-the -nour-value-from-a-value-in-value-in -big-query) –