Skip to content

Commit

Permalink
Added data transformation on the logical table of smsusage (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimleroyer authored Mar 20, 2024
1 parent 09d0e37 commit 4a8a87f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions aws/quicksight/dataset_sms_usage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,43 @@ resource "aws_quicksight_data_set" "sms_usage" {
}
}

logical_table_map {
logical_table_map_id = "smsusage"

alias = "smsusage"

source {
physical_table_id = "smsusage"
}

data_transforms {

# cast_column_type_operation {
# column_name = "PublishTimeUTC"
# new_column_type = "DATETIME"
# }

cast_column_type_operation {
column_name = "PriceInUSD"
new_column_type = "DECIMAL"
}
}

data_transforms {
cast_column_type_operation {
column_name = "PartNumber"
new_column_type = "INTEGER"
}
}

data_transforms {
cast_column_type_operation {
column_name = "TotalParts"
new_column_type = "INTEGER"
}
}
}

permissions {
actions = local.dataset_viewer_permissions
principal = aws_quicksight_group.dataset_viewer.arn
Expand Down

0 comments on commit 4a8a87f

Please sign in to comment.