Skip to content

Fix finops_utilization_efficiency: separate window function from aggregates#466

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/finops-view-aggregate
Mar 7, 2026
Merged

Fix finops_utilization_efficiency: separate window function from aggregates#466
erikdarlingdata merged 1 commit intodevfrom
fix/finops-view-aggregate

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • PERCENTILE_CONT ... OVER() is a window function that can't be mixed with AVG/MAX/COUNT aggregates in the same SELECT (Msg 8120)
  • Split into separate CTEs: cpu_p95 for the window function, cpu_agg for aggregates, then combine in cpu_dedup

🤖 Generated with Claude Code

… aggregates

PERCENTILE_CONT ... OVER() is a window function and cannot be mixed with
AVG/MAX/COUNT aggregates in the same SELECT. Split into separate CTEs:
cpu_p95 for the window function, cpu_agg for the aggregates, then combine.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit f349dec into dev Mar 7, 2026
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.

1 participant