-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix cost (for methods cromwell), add explicit example #278
Changes from 1 commit
a08eaaa
f1344e2
438433f
dd7dabf
4cefaec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,15 +182,15 @@ def create_bq_query(detailed: bool, bq_cost_table: str) -> str: | |
AND task.key LIKE "wdl-task-name" | ||
AND wfid.key LIKE "cromwell-workflow-id" | ||
AND wfid.value like @workflow_id | ||
AND partition_time BETWEEN @start_date AND @end_date | ||
AND export_time BETWEEN @start_date AND @end_date | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I looked at our cost tabe and do see this key in it, instead of the
And confusing the situation, even more, are the two other There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good questions. I do remember some email about google changing things. I think this is what happened, but I can't verify it. Not sure about |
||
GROUP BY 1,2,3 | ||
ORDER BY 4 DESC | ||
""" | ||
else: | ||
return f""" | ||
SELECT sum(cost) as cost | ||
FROM {bq_cost_table}, UNNEST(labels) | ||
WHERE value LIKE @workflow_id AND partition_time BETWEEN @start_date AND @end_date | ||
WHERE value LIKE @workflow_id AND export_time BETWEEN @start_date AND @end_date | ||
""" | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer we hide these values from the open internet, just in case...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so how about the following:
"<bq_dataset_hosting_the_billing_datatable>.<the_billing_datatable>"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could do that if we need to yeah
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(But if there's no risk in exposing these, I'd like the example to be 100% explicit. Because I never would have foudn those values.
So... is there a risk?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or... better... if we included directions for how to find that table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I don't know what those directions are