Skip to content

Commit 6798198

Browse files
authored
unified 0.4.1 (#880)
* unified 0.4.1 * Add feedback on passthrough information * reword thing * fix bad links
1 parent ba8ad92 commit 6798198

16 files changed

+964
-28
lines changed

docs/modeling-your-data/modeling-your-data-with-dbt/package-features/passthrough-fields/index.md

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ vars:
3636

3737
Note that how to extract a field from your context column will depend on your warehouse (see our [querying guide](/docs/storing-querying/querying-data/index.md#entities) for more information), and you are unable to use dbt macros in this variable. For first/last variables, any basic field will have `first_` or `last_` prefixed to the field name automatically to avoid clashes, however if you are using the SQL approach, you will need to add these prefixes as part of your alias.
3838

39+
40+
:::tip
41+
42+
In certain cases, such as the users table in Unified, it may be required to first set passthrough fields on an upstream table (the sessions table in that case) to make sure it is available for selection. The best way to identify this is to look at the DAG in the dbt docs for the package you are using.
43+
44+
:::
45+
3946
## Usage Notes
4047

4148
Which event the field(s) are taken from depends on the derived table; for example in the Views table in the Unified package the the field value from the `page_view` event itself, _not_ the pings.

src/componentVersions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const versions = {
4242
// Data Modelling
4343
// dbt
4444
dbtSnowplowAttribution: '0.2.0',
45-
dbtSnowplowUnified: '0.4.0',
45+
dbtSnowplowUnified: '0.4.1',
4646
dbtSnowplowWeb: '1.0.1',
4747
dbtSnowplowMobile: '1.0.0',
4848
dbtSnowplowUtils: '0.16.5',

src/components/JsonSchemaValidator/Schemas/dbtEcommerce_0.7.1.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@
347347
"consoleGroup": "advanced",
348348
"title": "Session Identifiers",
349349
"group": "Operation and Logic",
350-
"longDescription": "A list of key:value dictionaries which contain all of the contexts and fields where your session identifiers are located. For each entry in the list, if your map contains the `schema` value `atomic`, then this refers to a field found directly in the atomic `events` table. If you are trying to introduce a context/entity with an identifier in it, the package will look for the context in your events table with the name specified in the `schema` field. It will use the specified value in the `field` key as the field name to access. For Redshift/Postgres, using the `schema` key the package will try to find a table in your `snowplow__events_schema` schema with the same name as the `schema` value provided, and join that. If multiple fields are specified, the package will try to coalesce all fields in the order specified in the list. For a better understanding of the advanced usage of this variable, please see the [Custom Identifiers](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/customer-identifiers/) section for more details.",
350+
"longDescription": "A list of key:value dictionaries which contain all of the contexts and fields where your session identifiers are located. For each entry in the list, if your map contains the `schema` value `atomic`, then this refers to a field found directly in the atomic `events` table. If you are trying to introduce a context/entity with an identifier in it, the package will look for the context in your events table with the name specified in the `schema` field. It will use the specified value in the `field` key as the field name to access. For Redshift/Postgres, using the `schema` key the package will try to find a table in your `snowplow__events_schema` schema with the same name as the `schema` value provided, and join that. If multiple fields are specified, the package will try to coalesce all fields in the order specified in the list. For a better understanding of the advanced usage of this variable, please see the [Custom Identifiers](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/custom-identifiers/) section for more details.",
351351
"packageDefault": "[{\"schema\" : \"atomic\", \"field\" : \"domain_sessionid\"}]",
352352
"type": "array",
353353
"description": "> Click the plus sign to add a new entry",
@@ -379,7 +379,7 @@
379379
"consoleGroup": "advanced",
380380
"type": "string",
381381
"title": "SQL for your session identifier",
382-
"longDescription": "This allows you to override the `session_identifiers` SQL, to define completely custom SQL in order to build out a session identifier for your events. If you are interested in using this instead of providing identifiers through the `session_identifiers` variable, please see the [Custom Identifiers](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/customer-identifiers/) section for more details on how to do that.",
382+
"longDescription": "This allows you to override the `session_identifiers` SQL, to define completely custom SQL in order to build out a session identifier for your events. If you are interested in using this instead of providing identifiers through the `session_identifiers` variable, please see the [Custom Identifiers](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/custom-identifiers/) section for more details on how to do that.",
383383
"packageDefault": "",
384384
"group": "Operation and Logic"
385385
},
@@ -399,7 +399,7 @@
399399
"consoleGroup": "advanced",
400400
"title": "User Identifiers",
401401
"group": "Operation and Logic",
402-
"longDescription": "A list of key:value dictionaries which contain all of the contexts and fields where your user identifiers are located. For each entry in the list, if your map contains the `schema` value `atomic`, then this refers to a field found directly in the atomic `events` table. If you are trying to introduce a context/entity with an identifier in it, the package will look for the context in your events table with the name specified in the `schema` field. It will use the specified value in the `field` key as the field name to access. For Redshift/Postgres, using the `schema` key the package will try to find a table in your `snowplow__events_schema` schema with the same name as the `schema` value provided, and join that. If multiple fields are specified, the package will try to coalesce all fields in the order specified in the list. For a better understanding of the advanced usage of this variable, please see the [Custom Identifiers](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/customer-identifiers/) section for more details.",
402+
"longDescription": "A list of key:value dictionaries which contain all of the contexts and fields where your user identifiers are located. For each entry in the list, if your map contains the `schema` value `atomic`, then this refers to a field found directly in the atomic `events` table. If you are trying to introduce a context/entity with an identifier in it, the package will look for the context in your events table with the name specified in the `schema` field. It will use the specified value in the `field` key as the field name to access. For Redshift/Postgres, using the `schema` key the package will try to find a table in your `snowplow__events_schema` schema with the same name as the `schema` value provided, and join that. If multiple fields are specified, the package will try to coalesce all fields in the order specified in the list. For a better understanding of the advanced usage of this variable, please see the [Custom Identifiers](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/custom-identifiers/) section for more details.",
403403
"packageDefault": "[{\"schema\" : \"atomic\", \"field\" : \"domain_userid\"}]",
404404
"type": "array",
405405
"description": "> Click the plus sign to add a new entry",
@@ -431,7 +431,7 @@
431431
"consoleGroup": "advanced",
432432
"type": "string",
433433
"title": "SQL for your user identifier",
434-
"longDescription": "This allows you to override the `user_identifiers` SQL, to define completely custom SQL in order to build out a user identifier for your events. If you are interested in using this instead of providing identifiers through the `user_identifiers` variable, please see the [Custom Identifiers](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/customer-identifiers/) section for more details on how to do that.",
434+
"longDescription": "This allows you to override the `user_identifiers` SQL, to define completely custom SQL in order to build out a user identifier for your events. If you are interested in using this instead of providing identifiers through the `user_identifiers` variable, please see the [Custom Identifiers](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/custom-identifiers/) section for more details on how to do that.",
435435
"packageDefault": "",
436436
"group": "Operation and Logic"
437437
},

src/components/JsonSchemaValidator/Schemas/dbtMobile_1.0.0.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@
448448
"consoleGroup": "advanced",
449449
"title": "User Last Passthroughs",
450450
"group": "Contexts, Filters, and Logs",
451-
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the last session record for that user. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
451+
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the last session record for that user. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. See the [Passthrough field](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/passthrough-fields/) docs for more information.Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
452452
"packageDefault": "[ ] (no passthroughs)",
453453
"$ref": "#/definitions/passthrough_vars"
454454
},

src/components/JsonSchemaValidator/Schemas/dbtUnified_0.1.2.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@
600600
"consoleGroup": "advanced",
601601
"title": "User Last Passthroughs",
602602
"group": "Contexts, Filters, and Logs",
603-
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the last session record for that user. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
603+
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the last session record for that user. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. See the [Passthrough field](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/passthrough-fields/) docs for more information.Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
604604
"packageDefault": "[ ] (no passthroughs)",
605605
"$ref": "#/definitions/passthrough_vars"
606606
},

src/components/JsonSchemaValidator/Schemas/dbtUnified_0.2.0.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@
614614
"consoleGroup": "advanced",
615615
"title": "User Last Passthroughs",
616616
"group": "Contexts, Filters, and Logs",
617-
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the last session record for that user. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
617+
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the last session record for that user. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. See the [Passthrough field](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/passthrough-fields/) docs for more information.Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
618618
"packageDefault": "[ ] (no passthroughs)",
619619
"$ref": "#/definitions/passthrough_vars"
620620
},
@@ -624,7 +624,7 @@
624624
"consoleGroup": "advanced",
625625
"title": "User Conversion Passthroughs",
626626
"group": "Contexts, Filters, and Logs",
627-
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the events_this_run table therefore taking all events. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
627+
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the events_this_run table therefore taking all events. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. See the [Passthrough field](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/passthrough-fields/) docs for more information.Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
628628
"packageDefault": "[ ] (no passthroughs)",
629629
"$ref": "#/definitions/passthrough_vars"
630630
},

src/components/JsonSchemaValidator/Schemas/dbtUnified_0.3.0.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@
653653
"consoleGroup": "advanced",
654654
"title": "User Last Passthroughs",
655655
"group": "Contexts, Filters, and Logs",
656-
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the last session record for that user. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
656+
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the last session record for that user. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. See the [Passthrough field](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/passthrough-fields/) docs for more information.Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
657657
"packageDefault": "[ ] (no passthroughs)",
658658
"$ref": "#/definitions/passthrough_vars"
659659
},
@@ -663,7 +663,7 @@
663663
"consoleGroup": "advanced",
664664
"title": "User Conversion Passthroughs",
665665
"group": "Contexts, Filters, and Logs",
666-
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the events_this_run table therefore taking all events. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
666+
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the events_this_run table therefore taking all events. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. See the [Passthrough field](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/passthrough-fields/) docs for more information.Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
667667
"packageDefault": "[ ] (no passthroughs)",
668668
"$ref": "#/definitions/passthrough_vars"
669669
},

src/components/JsonSchemaValidator/Schemas/dbtUnified_0.3.1.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@
653653
"consoleGroup": "advanced",
654654
"title": "User Last Passthroughs",
655655
"group": "Contexts, Filters, and Logs",
656-
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the last session record for that user. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
656+
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the last session record for that user. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. See the [Passthrough field](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/passthrough-fields/) docs for more information.Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
657657
"packageDefault": "[ ] (no passthroughs)",
658658
"$ref": "#/definitions/passthrough_vars"
659659
},
@@ -663,7 +663,7 @@
663663
"consoleGroup": "advanced",
664664
"title": "User Conversion Passthroughs",
665665
"group": "Contexts, Filters, and Logs",
666-
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the events_this_run table therefore taking all events. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
666+
"longDescription": "Field(s) to carry through from the events table to the derived table. The field is based on the events_this_run table therefore taking all events. Aggregation is not supported. A list of either flat column names from the events table or a dictionary with the keys `sql` for the SQL code to select the column and `alias` for the alias of the column in the output. See the [Passthrough field](docs/modeling-your-data/modeling-your-data-with-dbt/package-features/passthrough-fields/) docs for more information.Note flat fields will be aliased with a `last_` prefix, dictionary provided aliases will not by default.",
667667
"packageDefault": "[ ] (no passthroughs)",
668668
"$ref": "#/definitions/passthrough_vars"
669669
},

0 commit comments

Comments
 (0)