From f0b7db8948faa2a84499589eae83e52c3a488ec5 Mon Sep 17 00:00:00 2001 From: psodhi-gds Date: Mon, 16 Dec 2024 10:29:34 +0000 Subject: [PATCH] ci-ci-reason fix --- .../V5.1__ci_cireason_fix.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 redshift-scripts/flyway/migrations/dap_txma_reporting_db_refactored/V5.1__ci_cireason_fix.sql diff --git a/redshift-scripts/flyway/migrations/dap_txma_reporting_db_refactored/V5.1__ci_cireason_fix.sql b/redshift-scripts/flyway/migrations/dap_txma_reporting_db_refactored/V5.1__ci_cireason_fix.sql new file mode 100644 index 000000000..e5cee4257 --- /dev/null +++ b/redshift-scripts/flyway/migrations/dap_txma_reporting_db_refactored/V5.1__ci_cireason_fix.sql @@ -0,0 +1,8 @@ +DELETE FROM "dap_txma_reporting_db_refactored"."conformed_refactored"."event_extensions_refactored" +USING "dap_txma_reporting_db_refactored"."conformed_refactored"."fact_user_journey_event_refactored" AS fct, + "dap_txma_reporting_db_refactored"."conformed_refactored"."dim_event_refactored" AS de +WHERE "event_extensions_refactored".event_id = fct.event_id + AND fct.event_key = de.event_key + AND de.event_name = 'BAV_CRI_VC_ISSUED' + AND (event_attribute_name LIKE ('%evidence%cireasons%ci%') + OR event_attribute_name LIKE ('%evidence%cireasons%reason%') ) ; \ No newline at end of file