Files
Alexey MilovidovandClaude Opus 4.8 3236f8cb15 Autogenerate window-function reference pages from structured docs
Author FunctionDocumentation for the window functions (which previously had
none) and convert their reference pages to be regenerated from
system.functions, like the other component categories.

The 12 window functions registered in WindowTransform.cpp (rank, denseRank,
percentRank, cume_dist, row_number, ntile, nth_value, lagInFrame, lag,
leadInFrame, lead, nonNegativeDerivative) get their reference-page body as
the .description of the FunctionDocumentation passed at registerFunction
time (the doc is the 2nd element of the aggregate-factory Value brace;
category AggregateFunction, as there is no Window category). A new
generate-window-functions.sql + window_function_generators emit that body,
matched to the page basename case/separator-insensitively (dense_rank ->
denseRank, percent_rank -> percentRank).

first_value and last_value are left hand-written: they are registerAlias of
any / anyLast and so cannot carry their own window-specific documentation.

Verified against a from-master build: each function's
system.functions.description matches its master page body byte-for-byte, and
each regenerated page equals origin/master (body identical, only the
AUTOGENERATED markers added) with zero broken links.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-07-13 00:38:40 +00:00
..