Skip to content

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.

3 participants