The lead(), lag(), first_value(), last_value(), and nth_value() window functions can skip NULL values using IGNORE NULLS.
lead()
lag()
first_value()
last_value()
nth_value()
NULL
IGNORE NULLS