With a few exceptions, most native aggregate functions are supported as window functions.
MDEV-7773, support for creating of custom aggregate functions was added.
This task proposes to extend that feature and allow custom aggregate functions to be used as window functions
An example of a creating a custom aggregate function is given below:
This functions can be used in the following query:
After this task is complete the following must also work: