From 0b38eb120fac0dc99b2388d3c750aa83dc755fb7 Mon Sep 17 00:00:00 2001 From: Pat Nadolny Date: Tue, 1 Oct 2024 17:40:17 -0400 Subject: [PATCH] fix failing references to options_obj --- .../marts/telemetry/base/project_base.sql | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/data/transform/models/marts/telemetry/base/project_base.sql b/data/transform/models/marts/telemetry/base/project_base.sql index abcad37f..37fff6fe 100644 --- a/data/transform/models/marts/telemetry/base/project_base.sql +++ b/data/transform/models/marts/telemetry/base/project_base.sql @@ -2,13 +2,14 @@ WITH first_values AS ( SELECT DISTINCT project_id, - FIRST_VALUE( - CASE WHEN is_exec_event = TRUE THEN options_obj END - ) IGNORE NULLS OVER ( - PARTITION BY - project_id - ORDER BY COALESCE(started_ts, finished_ts) ASC - ):elt:state::STRING AS first_elt_state, + -- FIRST_VALUE( + -- CASE WHEN is_exec_event = TRUE THEN options_obj END + -- ) IGNORE NULLS OVER ( + -- PARTITION BY + -- project_id + -- ORDER BY COALESCE(started_ts, finished_ts) ASC + -- ):elt:state::STRING + NULL AS first_elt_state, FIRST_VALUE( CASE WHEN cli_command != 'init' @@ -31,13 +32,14 @@ WITH first_values AS ( project_id ORDER BY COALESCE(started_ts, finished_ts) ASC ) AS last_meltano_version, - FIRST_VALUE( - options_obj:init:project_directory - ) IGNORE NULLS OVER ( - PARTITION BY - project_id - ORDER BY COALESCE(started_ts, finished_ts) ASC - ) AS first_project_directory + -- FIRST_VALUE( + -- options_obj:init:project_directory + -- ) IGNORE NULLS OVER ( + -- PARTITION BY + -- project_id + -- ORDER BY COALESCE(started_ts, finished_ts) ASC + -- ) + NULL AS first_project_directory FROM {{ ref('cli_executions_base') }} ),