-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Description
Issue Summary
It looks like the alert always sees a query result as a string and not a number. So an alert configured to trigger when field = 0
never triggers because "0"
does not equal 0
.
The alerts seems to evaluate fine for targets that are obviously strings. If the alert should trigger if field = boyhowdy
then the alert triggers when field
is "boyhowdy".
Steps to Reproduce
- Save a query that returns 0:
SELECT 0 "value"
- Make an alert for the query that triggers when
value = 0
- Run the query
- Observe the alert does not trigger.
The converse is also true, by the way.
- Same as above
- Make an alert for the query that triggers when
value != 0
- Run the query
- Observe the alert triggers
Technical details:
- Redash Version: 9.0.0-alpha+b348b58b (348b58b)
- Browser/OS: Firefox on MacOS
- How did you install Redash: SaaS