Don’t allow invalid aggregate functions to be used in GROUP BY clauses

This commit is contained in:
Tobie Morgan Hitchcock 2023-01-08 14:36:44 +00:00
parent 369a100c92
commit 1cef0946dc

View file

@ -77,10 +77,8 @@ impl Function {
/// Check if this function is a grouping function
pub fn is_aggregate(&self) -> bool {
match self {
Self::Normal(f, _) if f == "array::concat" => true,
Self::Normal(f, _) if f == "array::distinct" => true,
Self::Normal(f, _) if f == "array::group" => true,
Self::Normal(f, _) if f == "array::union" => true,
Self::Normal(f, _) if f == "count" => true,
Self::Normal(f, _) if f == "math::bottom" => true,
Self::Normal(f, _) if f == "math::interquartile" => true,