Skip to content

Commit

Permalink
Fix default dtypes mapping for OCI (#4830)
Browse files Browse the repository at this point in the history
  • Loading branch information
myersCody authored Dec 14, 2023
1 parent bdd582d commit 0c71f9d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions koku/reporting/provider/oci/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
TRINO_LINE_ITEM_TABLE_MAP = {"cost": "oci_cost_line_items", "usage": "oci_usage_line_items"}
TRINO_LINE_ITEM_DAILY_TABLE_MAP = {"cost": "oci_cost_line_items_daily", "usage": "oci_usage_line_items_daily"}

# These defaults need to match the numeric & date columns in OCIReportParquetProcessor
# because that is how we build the trino schema
TRINO_REQUIRED_COLUMNS = {
"lineItem/referenceNo": "",
"lineItem/tenantId": "",
Expand All @@ -42,17 +44,17 @@
"product/availabilityDomain": "",
"product/resourceId": "",
"usage/consumedQuantity": 0.0,
"usage/billedQuantity": 0.0,
"usage/billedQuantityOverage": 0.0,
"usage/billedQuantity": "",
"usage/billedQuantityOverage": "",
"usage/consumedQuantityUnits": "",
"usage/consumedQuantityMeasure": "",
"cost/subscriptionId": "",
"cost/productSku": "",
"product/Description": "",
"cost/unitPrice": 0.0,
"cost/unitPriceOverage": 0.0,
"cost/unitPrice": "",
"cost/unitPriceOverage": "",
"cost/myCost": 0.0,
"cost/myCostOverage": 0.0,
"cost/myCostOverage": "",
"cost/currencyCode": "",
"cost/billingUnitReadable": "",
"cost/skuUnitDescription": "",
Expand Down

0 comments on commit 0c71f9d

Please sign in to comment.