riaDB 10.4 aggregate UDFs will work as WINDOW functions without x_remove() but it will not be so efficient. If x_remove() supported (defined) detected automatically. URL: https://mariadb.com/kb/en/user-defined-functions-calling-sequences/https://mariadb.com/kb/en/user-defined-functions-calling-sequences/