We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3ce8b1 commit a2e93f3Copy full SHA for a2e93f3
src/alerts/mod.rs
@@ -699,7 +699,7 @@ impl AlertConfig {
699
let query = match aggregate_function {
700
AggregateFunction::CountDistinct => {
701
if column == "*" {
702
- format!("SELECT COUNT(DISTINCT *) as alert_value FROM \"{stream}\"")
+ format!("SELECT COUNT(*) as alert_value FROM \"{stream}\"")
703
} else {
704
format!("SELECT COUNT(DISTINCT \"{column}\") as alert_value FROM \"{stream}\"")
705
}
0 commit comments