Skip to content

Commit

Permalink
Update common.libsonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
emre committed Apr 5, 2021
1 parent da9fbe8 commit d9c29f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ local predefined = import 'predefined.jsonnet';
type: 'integer',
},
weeks_since_signup: {
sql: 'TIMESTAMP_DIFF({{dimension.event_timestamp}}, {{dimension.user_first_touch}}, WEEK)',
sql: 'DATE_DIFF(CAST({{dimension.event_timestamp}} AS DATE), CAST({{dimension.user_first_touch}} AS DATE), WEEK)',
type: 'integer',
},
firebase_user_id: {
Expand Down

0 comments on commit d9c29f2

Please sign in to comment.