Skip to content

Commit d3d5527

Browse files
committed
Fix for user_id column
1 parent 0c0a551 commit d3d5527

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'jitsu'
2-
version: '0.1.0'
2+
version: '0.1.1'
33
require-dbt-version: ">=0.20.0"
44
config-version: 2
55

models/sessions/jitsu_sessions.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ agg as (
5858

5959
session_id,
6060
user_anonymous_id,
61-
last_value(coalesce(user_anonymous_id, user_id, user_email)) over ({{window_clause}}) as blended_user_id,
61+
last_value(coalesce(user_anonymous_id, user_internal_id, user_email)) over ({{window_clause}}) as blended_user_id,
6262
min(_timestamp) over ( {{partition_by}} ) as session_start_timestamp,
6363
max(_timestamp) over ( {{partition_by}} ) as session_end_timestamp,
6464
count(*) over ( {{partition_by}} ) as pageviews,

0 commit comments

Comments
 (0)