From 1cef0946dcfb00289cc9a5c1a44d6f265e5b9b2d Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 8 Jan 2023 14:36:44 +0000 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20allow=20invalid=20aggregate=20f?= =?UTF-8?q?unctions=20to=20be=20used=20in=20GROUP=20BY=20clauses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/sql/function.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/src/sql/function.rs b/lib/src/sql/function.rs index 7fbb0e34..47111588 100644 --- a/lib/src/sql/function.rs +++ b/lib/src/sql/function.rs @@ -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,