-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
bugSomething isn't workingSomething isn't workingfrom-cliFeedback submitted via CLIFeedback submitted via CLIuser-feedbackFeedback submitted by usersFeedback submitted by users
Description
Problem
The FinOps tools (finops_analyze_credits, finops_warehouse_advice, finops_expensive_queries, finops_unused_resources) return masked/zeroed data (unknown warehouse names, 0.00 credits) even when the connected Snowflake role (ACCOUNTADMIN) has full access to SNOWFLAKE.ACCOUNT_USAGE views. The finops_warehouse_advice tool also fails with a SQL compilation error: invalid identifier 'WAREHOUSE_SIZE'.
Steps to Reproduce
- Configure a Snowflake warehouse connection (e.g.,
snowflake_sample) with a role that has ACCOUNT_USAGE access (tested withACCOUNTADMIN). - Verify direct SQL access works:
→ Returns
SELECT COUNT(*) FROM SNOWFLAKE.ACCOUNT_USAGE.WAREHOUSE_METERING_HISTORY WHERE START_TIME >= DATEADD('day', -30, CURRENT_TIMESTAMP());
908rows successfully. - Verify the connection identity:
→ Returns
SELECT CURRENT_ROLE(), CURRENT_USER(), CURRENT_ACCOUNT();
ACCOUNTADMIN,SAURABH,BZB11272. - Call
finops_analyze_creditswithwarehouse: snowflake_sample,days: 30,limit: 50.
→ Returns allunknownwarehouse names and0.00credits (13 rows of zeroed data). - Call
finops_warehouse_advicewithwarehouse: snowflake_sample,days: 30.
→ Fails with:000904 (42000): SQL compilation error: error line 3 at position 4 invalid identifier 'WAREHOUSE_SIZE'. - Call
finops_expensive_queriesandfinops_unused_resources— both return zeroed/empty results.
Expected Behavior
FinOps tools should return actual credit consumption data matching the direct SQL query results (908 rows of valid metering history data across 13 active warehouses totaling ~230 credits over 30 days).
Actual Behavior
finops_analyze_credits: Returns masked data (allunknown/0.00)finops_warehouse_advice: SQL compilation error onWAREHOUSE_SIZEcolumnfinops_expensive_queries: Returns zeroed resultsfinops_unused_resources: Returns zeroed results
Workaround
Query SNOWFLAKE.ACCOUNT_USAGE views directly via sql_execute to get the actual data.
Metadata
| Field | Value |
|---|---|
| CLI Version | v0.4.0 |
| Platform | darwin |
| Architecture | arm64 |
| OS Release | 24.6.0 |
| Category | bug |
| Working Directory | ac-examples |
| Session ID | ses_3070d9fdaffeV9OvBpIrq46996 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfrom-cliFeedback submitted via CLIFeedback submitted via CLIuser-feedbackFeedback submitted by usersFeedback submitted by users