Hello.
Window functions aren't available in old versions of H2, only 1.4.198 and 1.4.199 have them. 1.4.198 has a lot of regressions, so use 1.4.199.
Online documentation in both HTML and PDF formats covers only the latest available version. When you use some older version you need to use the documentation from the ZIP distribution of that version.