Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use OR in Alert query WHERE #7218

Open
KieranP opened this issue Mar 5, 2025 · 0 comments
Open

Ability to use OR in Alert query WHERE #7218

KieranP opened this issue Mar 5, 2025 · 0 comments

Comments

@KieranP
Copy link

KieranP commented Mar 5, 2025

I have an alert that needs to run when deployment_environment = production OR client_name = demo.

But the current implementation of the query builder appears to join WHERE parts with AND.

So it would be nice if the WHERE part of the query builder supported using OR between query parts.

e.g. WHERE: deployment_environment = production OR client_name = demo

Is the only way to achieve this by writing a custom clickhouse query? If so, is there a way to convert the current alert query builder into a matching CH SQL query so I don't have to start from scratch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant