Skip to content

Commit

Permalink
Fix for user_id column
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Sep 13, 2021
1 parent 0c0a551 commit d3d5527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'jitsu'
version: '0.1.0'
version: '0.1.1'
require-dbt-version: ">=0.20.0"
config-version: 2

Expand Down
2 changes: 1 addition & 1 deletion models/sessions/jitsu_sessions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ agg as (

session_id,
user_anonymous_id,
last_value(coalesce(user_anonymous_id, user_id, user_email)) over ({{window_clause}}) as blended_user_id,
last_value(coalesce(user_anonymous_id, user_internal_id, user_email)) over ({{window_clause}}) as blended_user_id,
min(_timestamp) over ( {{partition_by}} ) as session_start_timestamp,
max(_timestamp) over ( {{partition_by}} ) as session_end_timestamp,
count(*) over ( {{partition_by}} ) as pageviews,
Expand Down

0 comments on commit d3d5527

Please sign in to comment.