-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: use relationship, occurance classes * docs: update README * feat: simplified interface * fix: override_columns -> activity_schema_v2_column_mappings * docs: update README
- Loading branch information
1 parent
45ad426
commit b0953be
Showing
44 changed files
with
608 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
integration_tests/models/first_after/dataset__first_after_1.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
{{ | ||
dbt_activity_schema.dataset( | ||
ref("input__first_after"), | ||
dbt_activity_schema.primary_activity("All","signed up"), | ||
dbt_activity_schema.activity( | ||
dbt_activity_schema.all_ever(), | ||
"signed up" | ||
), | ||
[ | ||
dbt_activity_schema.append_activity("first_after", "bought something") | ||
dbt_activity_schema.activity( | ||
dbt_activity_schema.first_after(), | ||
"bought something", | ||
["feature_json", "ts"] | ||
) | ||
] | ||
) | ||
}} |
12 changes: 9 additions & 3 deletions
12
integration_tests/models/first_after/dataset__first_after_2.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
{{ | ||
dbt_activity_schema.dataset( | ||
ref("input__first_after"), | ||
dbt_activity_schema.primary_activity("All","visit page"), | ||
dbt_activity_schema.activity( | ||
dbt_activity_schema.all_ever(), | ||
"visit page" | ||
), | ||
[ | ||
dbt_activity_schema.append_activity( | ||
"first_after", "bought something") | ||
dbt_activity_schema.activity( | ||
dbt_activity_schema.first_after(), | ||
"bought something", | ||
["feature_json", "ts"] | ||
) | ||
] | ||
) | ||
}} |
14 changes: 10 additions & 4 deletions
14
integration_tests/models/first_after/dataset__first_after_3.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
integration_tests/models/first_before/dataset__first_before.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{{ | ||
dbt_activity_schema.dataset( | ||
ref("example__activity_stream"), | ||
dbt_activity_schema.primary_activity("All","bought something"), | ||
dbt_activity_schema.activity(dbt_activity_schema.all_ever(), "bought something"), | ||
[ | ||
dbt_activity_schema.append_activity("first_before", "visited page") | ||
dbt_activity_schema.activity( | ||
dbt_activity_schema.first_before(), | ||
"visited page", | ||
["feature_json", "ts"] | ||
) | ||
] | ||
) | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{{ | ||
dbt_activity_schema.dataset( | ||
ref("example__activity_stream"), | ||
dbt_activity_schema.primary_activity("All","visited page"), | ||
dbt_activity_schema.activity(dbt_activity_schema.all_ever(),"visited page"), | ||
[ | ||
dbt_activity_schema.append_activity("first_ever", "signed up") | ||
dbt_activity_schema.activity( | ||
dbt_activity_schema.first_ever(), | ||
"signed up", | ||
["feature_json", "ts"] | ||
) | ||
] | ||
) | ||
}} |
5 changes: 2 additions & 3 deletions
5
integration_tests/models/last_after/dataset__last_after_1.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
{{ | ||
dbt_activity_schema.dataset( | ||
ref("input__last_after"), | ||
dbt_activity_schema.primary_activity(1,"signed up"), | ||
dbt_activity_schema.activity(dbt_activity_schema.nth_ever(1), "signed up"), | ||
[ | ||
dbt_activity_schema.append_activity("last_after", "visit page") | ||
dbt_activity_schema.activity(dbt_activity_schema.last_after(), "visit page") | ||
] | ||
) | ||
}} | ||
s |
8 changes: 6 additions & 2 deletions
8
integration_tests/models/last_before/dataset__last_before.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{{ | ||
dbt_activity_schema.dataset( | ||
ref("example__activity_stream"), | ||
dbt_activity_schema.primary_activity("All","bought something"), | ||
dbt_activity_schema.activity(dbt_activity_schema.all_ever(),"bought something"), | ||
[ | ||
dbt_activity_schema.append_activity("last_before", "visited page") | ||
dbt_activity_schema.activity( | ||
dbt_activity_schema.last_before(), | ||
"visited page", | ||
["feature_json", "ts"] | ||
) | ||
] | ||
) | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{{ | ||
dbt_activity_schema.dataset( | ||
ref("example__activity_stream"), | ||
dbt_activity_schema.primary_activity("Last","visited page"), | ||
dbt_activity_schema.activity(dbt_activity_schema.last_ever(),"visited page"), | ||
[ | ||
dbt_activity_schema.append_activity("last_ever", "bought something") | ||
dbt_activity_schema.activity( | ||
dbt_activity_schema.last_ever(), | ||
"bought something", | ||
["feature_json", "ts"] | ||
) | ||
] | ||
) | ||
}} |
Oops, something went wrong.