From 211b7284d78e286f06ee244383195ed4ec9ae515 Mon Sep 17 00:00:00 2001 From: lindseywatts <149418961+lindseywatts@users.noreply.github.com> Date: Thu, 25 Jan 2024 12:44:03 -0700 Subject: [PATCH] Redshift Fix for segment_web_page_views (#17) * cast as text * correct select --- models/base/segment_web_page_views.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/base/segment_web_page_views.sql b/models/base/segment_web_page_views.sql index 3076d09..b8d96bb 100644 --- a/models/base/segment_web_page_views.sql +++ b/models/base/segment_web_page_views.sql @@ -7,7 +7,7 @@ The if statement below checks to see if segment_page_views_table is a string or {% if var('segment_page_views_table') is string %} unioned_sources AS ( - select 'segment_page_views_table' as source_name, * from {{var('segment_page_views_table')}} + select cast('segment_page_views_table' as text) as source_name, * from {{var('segment_page_views_table')}} ),