Results of 1 - 1 of about 1 for duckweed (0.001 sec.)
- Window Function Extensions 9414
- New Support for defining window functions in extensions was introduced in DuckDB 2.0. The API is part of the C++ extension API and may still change. Every aggregate function can be used as a window function , but not every windowed operatio
...unction, derive from the WindowFunction class and register it in the extension's load function using the ExtensionLoader : DuckWeedFunction duckweed; loader.RegisterFunction(duckweed); Registered window functions are listed by duckdb_functions() with the...a chunk of rows using the input, the buffered (delayed) input, and the state. Example The loadable extension demo defines duckweed , a “fill down” window function that replaces NULL values with the last non- NULL value and implements both the blocking a...nd the streaming interface. With the demo extension loaded, the following query uses the streaming interface: SELECT i, m, duckweed(m) OVER () AS d FROM ( SELECT i, if(i % 5, i, NULL) AS m FROM range(8) t(i) ); i m d 0 NULL NULL 1 1 1 2 2 2 3 3 3 4 4 4 5... - https://man.mtool.work/duckdb/2.0/extensions/window_function_extensions.html
PREV
1
NEXT
DuckDB 2.0 Documentation / man.mtool.work