[#3870] Add support for aggregate FILTER clause