-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hello,
using the connector we are facing an error about division by 0 when usage.amount is equal to 0.
Please could you check the queries and fix it?
cc-gke-usage-metering/src/query.ts
Line 57 in 107cf72
| SUM(cost) / SUM(usage.amount) AS rate |
cc-gke-usage-metering/src/query.ts
Line 275 in 107cf72
| SUM(cost) / SUM(usage.amount) AS rate |
I have fix the query changing with SAFE_DIVIDE(SUM(cost), SUM(usage.amount)), but I can't fix it using the connector.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels