Skip to content

Commit 00ed8c5

Browse files
authored
add support for avg function (#50)
1 parent 0be0bb2 commit 00ed8c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

be/src/query.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,9 @@ impl UserQuery {
650650

651651
fn validate_function(&mut self, function: &mut ast::Function) -> Result<(), api::Error> {
652652
let name = function.name.to_string().to_lowercase();
653-
const VALID_FUNCS: [&str; 15] = [
653+
const VALID_FUNCS: [&str; 16] = [
654654
"coalesce",
655+
"avg",
655656
"min",
656657
"max",
657658
"sum",

0 commit comments

Comments
 (0)