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

Trying workaround for labeling scheduled queries #105

Merged
merged 7 commits into from
Dec 11, 2024
Merged

Conversation

cleentfaar
Copy link
Contributor

@cleentfaar cleentfaar commented Dec 11, 2024

Why?

Scheduled queries do not support labels natively. Since most of our platform relies on scheduled queries this would make dissecting costs by labels useless.

How?

As a workaround, I'm experimenting with passing the labels to the query itself by using the SET @@query_label = "foo:bar,apple:pie" syntax, and putting those before the actual scheduled query.

JIRA

https://reclabs.atlassian.net/browse/DATA-1358

@cleentfaar cleentfaar marked this pull request as ready for review December 11, 2024 12:13
@cleentfaar cleentfaar requested a review from a team as a code owner December 11, 2024 12:13
@cleentfaar cleentfaar merged commit fa120b7 into main Dec 11, 2024
2 checks passed
@cleentfaar cleentfaar deleted the lblworkaround branch December 11, 2024 12:53
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

Successfully merging this pull request may close these issues.

2 participants