Skip to content

Commit

Permalink
[COST-5565] - Adding inserts for missed column entries (#5464)
Browse files Browse the repository at this point in the history
* Adding inserts for missed column entries
  • Loading branch information
lcouzens authored Jan 23, 2025
1 parent 708a7d4 commit d78ebdf
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ INSERT INTO hive.{{trino_schema_prefix | sqlsafe}}{{schema | sqlsafe}}.managed_a
lineitem_productcode,
lineitem_availabilityzone,
lineitem_lineitemtype,
lineitem_usagetype,
lineitem_operation,
product_productfamily,
product_instancetype,
product_region,
Expand All @@ -75,6 +77,8 @@ INSERT INTO hive.{{trino_schema_prefix | sqlsafe}}{{schema | sqlsafe}}.managed_a
savingsplan_savingsplaneffectivecost,
product_productname,
bill_invoiceid,
product_vcpu,
product_memory,
resource_id_matched,
matched_tag,
source,
Expand Down Expand Up @@ -145,6 +149,8 @@ SELECT aws.lineitem_resourceid,
aws.lineitem_productcode,
aws.lineitem_availabilityzone,
aws.lineitem_lineitemtype,
aws.lineitem_usagetype,
aws.lineitem_operation,
aws.product_productfamily,
aws.product_instancetype,
aws.product_region,
Expand All @@ -164,6 +170,8 @@ SELECT aws.lineitem_resourceid,
aws.savingsplan_savingsplaneffectivecost,
aws.product_productname,
aws.bill_invoiceid,
aws.product_vcpu,
aws.product_memory,
CASE WHEN resource_names.lineitem_resourceid IS NOT NULL
THEN TRUE
ELSE FALSE
Expand Down

0 comments on commit d78ebdf

Please sign in to comment.