-
Notifications
You must be signed in to change notification settings - Fork 94
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
[COST-4367] Update HCS AWS SQL #4812
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4812 +/- ##
=======================================
- Coverage 94.0% 94.0% -0.0%
=======================================
Files 364 364
Lines 30206 30206
Branches 3599 3599
=======================================
- Hits 28382 28379 -3
- Misses 1164 1165 +1
- Partials 660 662 +2 |
From my understanding one of the main benefits of using UNION is that it removes duplicate rows between query 1 and query 2 from the final result. I am trying to walk through the scenario of what happens if the same row is returned for query 1 and query 2 in my head. In query 2, you may be applying the expected rates to the First, I wanted to get your opinion on if this scenario could even occur with the way query one and query two are currently structured? If the scenario can occur, then will the union still remove the duplicate? How does postgresql decide which value of the |
My understanding of the way AWS reports are structured from all the real reports I've looked at, is that these would be two separate instances that can't overlap. The On the flip side, the Marketplace offerings is where the product name may contain So I do not believe there is a valid case of both the product name and description containing Red Hat or RHEL. As for the UNION question, these would also not be considered distinct rows if a record that we overwrite the cost on was found to match both filters since the |
Gotcha, I just wanted to know if we put the thought into if the same row could be returned between the two query sets. If we did the due diligence and don't believe this is a real scenario, then I think this good to go! Thanks for taking the time to dig through that with me. |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Tested with full smokes locally using IQE MR with updated HCS tests -> clean pass (with the exception of 2 expected failures) |
Running hot-fix-smokes as Eva has tested the branch against her smoke test changes for HCS smokes and they passed. |
/retest |
Jira Ticket
COST-4367
Description
This change will update the AWS HCS querying to use a cost estimate for CCSP data based on vCPU count.
Testing
Notes
...