Skip to content

Commit

Permalink
Cudos v5 (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
yprikhodko authored Nov 10, 2023
1 parent 7a76872 commit 48a0d55
Show file tree
Hide file tree
Showing 11 changed files with 722 additions and 4 deletions.
178 changes: 178 additions & 0 deletions cid/builtin/core/data/datasets/cudos/hourly_view.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
{
"DataSetId": "78f4cc36-c46c-431b-91f0-c72e147d9bcb",
"Name": "hourly_view",
"PhysicalTableMap": {
"d456be68-afcd-4dc9-a024-6e0cfe596eb9": {
"RelationalTable": {
"DataSourceArn": "${athena_datasource_arn}",
"Schema": "${athena_database_name}",
"Name": "account_map",
"InputColumns": [
{
"Name": "account_id",
"Type": "STRING"
},
{
"Name": "account_name",
"Type": "STRING"
}
]
}
},
"e0c1051e-daef-4661-9554-42989b38effa": {
"RelationalTable": {
"DataSourceArn": "${athena_datasource_arn}",
"Schema": "${athena_database_name}",
"Name": "hourly_view",
"InputColumns": [
{
"Name": "product_code",
"Type": "STRING"
},
{
"Name": "service",
"Type": "STRING"
},
{
"Name": "operation",
"Type": "STRING"
},
{
"Name": "charge_type",
"Type": "STRING"
},
{
"Name": "usage_type",
"Type": "STRING"
},
{
"Name": "item_description",
"Type": "STRING"
},
{
"Name": "pricing_unit",
"Type": "STRING"
},
{
"Name": "region",
"Type": "STRING"
},
{
"Name": "pricing_term",
"Type": "STRING"
},
{
"Name": "billing_period",
"Type": "DATETIME"
},
{
"Name": "usage_date",
"Type": "DATETIME"
},
{
"Name": "payer_account_id",
"Type": "STRING"
},
{
"Name": "linked_account_id",
"Type": "STRING"
},
{
"Name": "savings_plan_a_r_n",
"Type": "STRING"
},
{
"Name": "reservation_a_r_n",
"Type": "STRING"
},
{
"Name": "unblended_cost",
"Type": "DECIMAL"
},
{
"Name": "reservation_effective_cost",
"Type": "DECIMAL"
},
{
"Name": "savings_plan_effective_cost",
"Type": "DECIMAL"
},
{
"Name": "usage_quantity",
"Type": "DECIMAL"
}
]
}
}
},
"LogicalTableMap": {
"a34a38d8-7504-4aba-89e8-d038d5fb5706": {
"Alias": "Intermediate Table",
"DataTransforms": [
{
"ProjectOperation": {
"ProjectedColumns": [
"product_code",
"service",
"operation",
"charge_type",
"usage_type",
"item_description",
"pricing_unit",
"region",
"pricing_term",
"billing_period",
"usage_date",
"payer_account_id",
"linked_account_id",
"savings_plan_a_r_n",
"reservation_a_r_n",
"unblended_cost",
"reservation_effective_cost",
"savings_plan_effective_cost",
"usage_quantity",
"account_id",
"account_name"
]
}
}
],
"Source": {
"JoinInstruction": {
"LeftOperand": "c08f9029-26ae-4a4c-91bc-ffad52dc67e3",
"RightOperand": "dea38012-0b99-4729-bebb-fe071a8b5327",
"Type": "LEFT",
"OnClause": "{linked_account_id} = {account_id}"
}
}
},
"c08f9029-26ae-4a4c-91bc-ffad52dc67e3": {
"Alias": "hourly_view",
"DataTransforms": [
{
"CastColumnTypeOperation": {
"ColumnName": "reservation_effective_cost",
"NewColumnType": "DECIMAL"
}
},
{
"CastColumnTypeOperation": {
"ColumnName": "usage_quantity",
"NewColumnType": "DECIMAL"
}
}
],
"Source": {
"PhysicalTableId": "e0c1051e-daef-4661-9554-42989b38effa"
}
},
"dea38012-0b99-4729-bebb-fe071a8b5327": {
"Alias": "account_map",
"Source": {
"PhysicalTableId": "d456be68-afcd-4dc9-a024-6e0cfe596eb9"
}
}
},
"ImportMode": "SPICE",
"Permissions": []
}
Loading

0 comments on commit 48a0d55

Please sign in to comment.