From 41bb0269b4c8f957f2f18e352888504498db9a2d Mon Sep 17 00:00:00 2001 From: Cody Myers Date: Wed, 1 May 2024 10:35:55 -0400 Subject: [PATCH] [COST-4967] Undo partial matching on node for ocp on azure. (#5078) --- .../trino_sql/reporting_ocpazurecostlineitem_daily_summary.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koku/masu/database/trino_sql/reporting_ocpazurecostlineitem_daily_summary.sql b/koku/masu/database/trino_sql/reporting_ocpazurecostlineitem_daily_summary.sql index afc024c510..f5acfa6182 100644 --- a/koku/masu/database/trino_sql/reporting_ocpazurecostlineitem_daily_summary.sql +++ b/koku/masu/database/trino_sql/reporting_ocpazurecostlineitem_daily_summary.sql @@ -368,7 +368,7 @@ SELECT azure.uuid as azure_uuid, JOIN hive.{{schema | sqlsafe}}.azure_openshift_daily_resource_matched_temp as azure ON (azure.usage_start = ocp.usage_start) AND ( - (strpos(azure.resource_id, ocp.node) > 0 AND ocp.data_source = 'Pod') + (azure.resource_id = ocp.node AND ocp.data_source = 'Pod') OR (strpos(azure.resource_id, ocp.persistentvolume) > 0 AND ocp.data_source = 'Storage') )