Skip to content

Commit

Permalink
Merge pull request #14 from fishtown-analytics/fix/relationship-schem…
Browse files Browse the repository at this point in the history
…a-test-syntax

updated schema test syntax to include ref calls explicitly
  • Loading branch information
jthandy authored May 24, 2017
2 parents 66c2796 + 50bb2dd commit 8f8bbcb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions models/page_views/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ snowplow_web_events:
- page_view_id

relationships:
- {from: page_view_id, to: snowplow_web_page_context, field: page_view_id }
- {from: page_view_id, to: ref('snowplow_web_page_context'), field: page_view_id }

# ensure there's actually data here
accepted_values:
Expand All @@ -30,7 +30,7 @@ snowplow_web_events_time:
- page_view_id

relationships:
- {from: page_view_id, to: snowplow_web_page_context, field: page_view_id }
- {from: page_view_id, to: ref('snowplow_web_page_context'), field: page_view_id }



Expand All @@ -43,7 +43,7 @@ snowplow_web_events_scroll_depth:
- page_view_id

relationships:
- {from: page_view_id, to: snowplow_web_page_context, field: page_view_id }
- {from: page_view_id, to: ref('snowplow_web_page_context'), field: page_view_id }


snowplow_web_page_context:
Expand Down
2 changes: 1 addition & 1 deletion models/sessions/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ snowplow_sessions:
- session_id

relationships:
- {from: session_id, to: snowplow_page_views, field: session_id}
- {from: session_id, to: ref('snowplow_page_views'), field: session_id}
2 changes: 1 addition & 1 deletion models/users/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ snowplow_users:
- user_snowplow_domain_id

relationships:
- {from: user_snowplow_domain_id, to: snowplow_page_views, field: user_snowplow_domain_id }
- {from: user_snowplow_domain_id, to: ref('snowplow_page_views'), field: user_snowplow_domain_id }

0 comments on commit 8f8bbcb

Please sign in to comment.