Skip to content

Commit

Permalink
fix sql
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws committed Oct 6, 2024
1 parent dffbfa6 commit 551dcdb
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions dashboards/support-cases-radar/support-cases-radar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1650,19 +1650,19 @@ views:
, communications.body
, communications.submitted_by
, communications.communication_time
, case_data.payer_id
, case_data.account_id
, case_data.displayid display_id
, case_data.subject
, case_data.status
, case_data.servicecode service_code
, case_data.categorycode category_code
, case_data.severitycode severity_code
, case_data.submitted_by case_submitted_by
, TRY(CAST(from_iso8601_timestamp(case_data.timecreated) AS timestamp)) case_created_time
, TRY(ARRAY_JOIN(case_data.ccemailaddresses, ',')) cc_email_addresses
, case_data.language
, case_data.summary
, case.payer_id
, case.account_id
, case.displayid display_id
, case.subject
, case.status
, case.servicecode service_code
, case.categorycode category_code
, case.severitycode severity_code
, case.submitted_by case_submitted_by
, TRY(CAST(from_iso8601_timestamp(case.timecreated) AS timestamp)) case_created_time
, TRY(ARRAY_JOIN(case.ccemailaddresses, ',')) cc_email_addresses
, case.language
, case.summary
, DATE_DIFF(
'minute',
LAG(communications.communication_time, 1) OVER (
Expand All @@ -1677,7 +1677,7 @@ views:
) communication_sequence
FROM
(communications
LEFT JOIN "${data_collection_database_name}".support_cases_data case_data ON (communications.case_id = case_data.case_id))
LEFT JOIN "${data_collection_database_name}".support_cases_data case ON (communications.case_id = case.caseid))
parameters:
data_collection_database_name:
type: athena
Expand Down

0 comments on commit 551dcdb

Please sign in to comment.