Skip to content

Commit a2e93f3

Browse files
fix for count distinct
1 parent d3ce8b1 commit a2e93f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/alerts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ impl AlertConfig {
699699
let query = match aggregate_function {
700700
AggregateFunction::CountDistinct => {
701701
if column == "*" {
702-
format!("SELECT COUNT(DISTINCT *) as alert_value FROM \"{stream}\"")
702+
format!("SELECT COUNT(*) as alert_value FROM \"{stream}\"")
703703
} else {
704704
format!("SELECT COUNT(DISTINCT \"{column}\") as alert_value FROM \"{stream}\"")
705705
}

0 commit comments

Comments
 (0)