From 3e73ccdadedeeae7175062e20afe7b48c4cd4817 Mon Sep 17 00:00:00 2001 From: ilias1111 <4363375+ilias1111@users.noreply.github.com> Date: Fri, 11 Oct 2024 12:08:07 +0000 Subject: [PATCH 1/3] [create-pull-request] automated change --- src/componentVersions.js | 2 +- .../Schemas/dbtMediaPlayer_0.9.0.json | 587 ++++++++++++++++++ 2 files changed, 588 insertions(+), 1 deletion(-) create mode 100644 src/components/JsonSchemaValidator/Schemas/dbtMediaPlayer_0.9.0.json diff --git a/src/componentVersions.js b/src/componentVersions.js index f65b19063b..e10c537034 100644 --- a/src/componentVersions.js +++ b/src/componentVersions.js @@ -46,7 +46,7 @@ export const versions = { dbtSnowplowWeb: '1.0.1', dbtSnowplowMobile: '1.0.0', dbtSnowplowUtils: '0.16.8', - dbtSnowplowMediaPlayer: '0.8.0', + dbtSnowplowMediaPlayer: '0.9.0', dbtSnowplowNormalize: '0.3.5', dbtSnowplowFractribution: '0.3.6', dbtSnowplowEcommerce: '0.8.2', diff --git a/src/components/JsonSchemaValidator/Schemas/dbtMediaPlayer_0.9.0.json b/src/components/JsonSchemaValidator/Schemas/dbtMediaPlayer_0.9.0.json new file mode 100644 index 0000000000..edf2463e13 --- /dev/null +++ b/src/components/JsonSchemaValidator/Schemas/dbtMediaPlayer_0.9.0.json @@ -0,0 +1,587 @@ +{ + "definitions": { + "passthrough_vars": { + "type": "array", + "description": "> Click the plus sign to add a new entry", + "minItems": 0, + "items": { + "title": "Type", + "oneOf": [ + { + "type": "string", + "title": "Column Name" + }, + { + "type": "object", + "title": "SQL & Alias", + "properties": { + "sql": { + "type": "string" + }, + "alias": { + "type": "string" + } + }, + "required": [ + "sql", + "alias" + ], + "additionalProperties": false + } + ] + }, + "uniqueItems": true + } + }, + "type": "object", + "properties": { + "snowplow__atomic_schema": { + "recommendFullRefresh": true, + "order": 3, + "consoleGroup": "required", + "type": "string", + "title": "Schema", + "description": "Schema (dataset) that contains your atomic events", + "longDescription": "The schema (dataset for BigQuery) that contains your atomic events table.", + "packageDefault": "atomic", + "group": "Warehouse and Tracker" + }, + "snowplow__database": { + "recommendFullRefresh": true, + "order": 1, + "consoleGroup": "required", + "type": "string", + "title": "Database", + "description": "Database that contains your atomic events", + "longDescription": "The database that contains your atomic events table.", + "packageDefault": "target.database", + "group": "Warehouse and Tracker" + }, + "snowplow__dev_target_name": { + "recommendFullRefresh": false, + "order": 87, + "consoleGroup": "advanced", + "type": "string", + "title": "Dev Target", + "description": "Target name of your development environment as defined in your `profiles.yml` file", + "longDescription": "The [target name](https://docs.getdbt.com/docs/core/connect-data-platform/profiles.yml) of your development environment as defined in your `profiles.yml` file. See the [Manifest Tables](/docs/modeling-your-data/modeling-your-data-with-dbt/package-mechanics/manifest-tables/) section for more details.", + "packageDefault": "dev", + "group": "Warehouse and Tracker" + }, + "snowplow__events_table": { + "recommendFullRefresh": true, + "order": 5, + "consoleGroup": "required", + "type": "string", + "title": "Events Table", + "description": "The name of the table that contains your atomic events", + "longDescription": "The name of the table that contains your atomic events.", + "packageDefault": "events", + "group": "Warehouse and Tracker" + }, + "snowplow__start_date": { + "recommendFullRefresh": false, + "order": 6, + "consoleGroup": "required", + "type": "string", + "format": "date", + "title": "Start Date", + "group": "Operation and Logic", + "longDescription": "The date to start processing events from in the package on first run or a full refresh, based on `collector_tstamp`", + "packageDefault": "2020-01-01", + "description": "The date to start processing events from in the package on first run or a full refresh, based on `collector_tstamp`" + }, + "snowplow__backfill_limit_days": { + "recommendFullRefresh": false, + "order": 41, + "consoleGroup": "advanced", + "type": "number", + "minimum": 0, + "title": "Backfill Limit", + "group": "Operation and Logic", + "longDescription": "The maximum numbers of days of new data to be processed since the latest event processed. Please refer to the [incremental logic](/docs/modeling-your-data/modeling-your-data-with-dbt/package-mechanics/incremental-processing/#package-state) section for more details.", + "packageDefault": "30", + "description": "The maximum numbers of days of new data to be processed since the latest event processed" + }, + "snowplow__session_lookback_days": { + "recommendFullRefresh": false, + "order": 121, + "consoleGroup": "advanced", + "type": "number", + "minimum": 0, + "title": "Session Lookback Window", + "longDescription": "Number of days to limit scan on `snowplow_media_player_base_sessions_lifecycle_manifest` manifest. Exists to improve performance of model when we have a lot of sessions. Should be set to as large a number as practical.", + "packageDefault": "730", + "group": "Operation and Logic", + "description": "Number of days to limit scan on `snowplow_media_player_base_sessions_lifecycle_manifest` manifest" + }, + "snowplow__days_late_allowed": { + "recommendFullRefresh": true, + "order": 42, + "consoleGroup": "advanced", + "type": "number", + "minimum": 0, + "title": "Days Late Allowed", + "group": "Operation and Logic", + "longDescription": "The maximum allowed number of days between the event creation and it being sent to the collector. Exists to reduce lengthy table scans that can occur as a result of late arriving data.", + "packageDefault": "3", + "description": "The maximum allowed number of days between the event creation and it being sent to the collector" + }, + "snowplow__max_session_days": { + "recommendFullRefresh": true, + "order": 110, + "consoleGroup": "advanced", + "type": "number", + "minimum": 0, + "title": "Max Session Length", + "longDescription": "The maximum allowed session length in days. For a session exceeding this length, all events after this limit will stop being processed. Exists to reduce lengthy table scans that can occur due to long sessions which are usually a result of bots.", + "packageDefault": "3", + "group": "Operation and Logic", + "description": "The maximum allowed session length in days. For a session exceeding this length, all events after this limit will stop being processed" + }, + "snowplow__upsert_lookback_days": { + "recommendFullRefresh": false, + "order": 126, + "consoleGroup": "advanced", + "type": "number", + "minimum": 0, + "title": "Upsert Lookback Days", + "group": "Operation and Logic", + "longDescription": "Number of days to look back over the incremental derived tables during the upsert. Where performance is not a concern, should be set to as long a value as possible. Having too short a period can result in duplicates. Please see the [Snowplow Optimized Materialization](/docs/modeling-your-data/modeling-your-data-with-dbt/package-mechanics/optimized-upserts/) section for more details.", + "packageDefault": "30", + "description": "Number of days to look back over the incremental derived tables during the upsert" + }, + "snowplow__allow_refresh": { + "recommendFullRefresh": true, + "order": 39, + "consoleGroup": "advanced", + "type": "boolean", + "title": "Allow Refresh", + "group": "Operation and Logic", + "longDescription": "Used as the default value to return from the `allow_refresh()` macro. This macro determines whether the manifest tables can be refreshed or not, depending on your environment. See the [Manifest Tables](/docs/modeling-your-data/modeling-your-data-with-dbt/package-mechanics/manifest-tables/) section for more details.", + "packageDefault": "false" + }, + "snowplow__media_event_names": { + "recommendFullRefresh": false, + "order": 111, + "consoleGroup": "advanced", + "type": "array", + "description": "> Click the plus sign to add a new entry", + "minItems": 0, + "title": "Event names to process", + "longDescription": "A list of names for media events to include for processing.", + "packageDefault": "['media_player_event']", + "group": "Contexts, Filters, and Logs", + "items": { + "type": "string" + } + }, + "snowplow__percent_progress_boundaries": { + "recommendFullRefresh": true, + "order": 20, + "consoleGroup": "basic", + "type": "array", + "title": "Percent Progress Boundaries", + "group": "Warehouse and Tracker", + "longDescription": "The list of percent progress values. It needs to be aligned with the values being tracked by the tracker. It is worth noting that the more these percent progress boundaries are being tracked the more accurate the play time calculations become. Please note that tracking 100% is unnecessary as there is a separate `ended` event which the model equates to achieving 100% and it also gets included automatically to this list, in case it is not added (you can refer to the helper macro `get_percentage_boundaries` ([source](https://snowplow.github.io/dbt-snowplow-media-player/#!/macro/macro.snowplow_media_player.get_percentage_boundaries)) for details).", + "packageDefault": "[10, 25, 50, 75]", + "description": "> Click the plus sign to add a new entry", + "minItems": 0, + "items": { + "type": "number" + } + }, + "snowplow__complete_play_rate": { + "recommendFullRefresh": true, + "order": 71, + "consoleGroup": "advanced", + "type": "number", + "minimum": 0, + "maximum": 1, + "title": "Complete Play Rate", + "group": "Operation and Logic", + "longDescription": "The rate to set what percentage of a media needs to be played in order to consider that complete. 0.99 (=99%) is set as a default value here but it may be increased to 1 (or decreased) depending on the use case.", + "packageDefault": "0.99", + "description": "Percentage of a media needs to be played in order to consider that complete" + }, + "snowplow__max_media_pv_window": { + "recommendFullRefresh": false, + "order": 109, + "consoleGroup": "advanced", + "type": "number", + "minimum": 0, + "title": "Max Media Page View Window", + "group": "Operation and Logic", + "longDescription": "The number of hours that needs to pass before new page_view level media player metrics from the `snowplow_media_player_base` table are safe to be processed by the model downstream in the `snowplow_media_player_media_stats` table. Please note that even if new events are added later on ( e.g. new `percentprogress` events are fired indicating potential replay) and the `snowplow_media_player_base` table is changed, the model will not update them in the media_stats table, therefore it is safer to set as big of a number as still convenient for analysis and reporting.", + "packageDefault": "10", + "description": "Number of hours that needs to pass before new page_view level media player metrics from the `snowplow_media_player_base` table are safe to be processed" + }, + "snowplow__valid_play_sec": { + "recommendFullRefresh": true, + "order": 38, + "consoleGroup": "basic", + "type": "number", + "minimum": 0, + "title": "Valid Play Seconds", + "group": "Operation and Logic", + "longDescription": "The minimum number of seconds that a media play needs to last to consider that interaction a valid play. The default is 30 seconds (based on the YouTube standard) but it can be modified here, if needed.", + "packageDefault": "30", + "description": "Minimum number of seconds that a media play needs to last to consider that interaction a valid play" + }, + "surrogate_key_treat_nulls_as_empty_strings": { + "recommendFullRefresh": true, + "consoleGroup": "advanced", + "type": "boolean", + "order": 999, + "title": "Surrogate Key Treat Nulls as Empty Strings", + "group": "Operation and Logic", + "longDescription": "Passed through to `dbt_utils` to match legacy surrogate key behavior.", + "packageDefault": "true", + "description": "Passed through to `dbt_utils` to match legacy surrogate key behavior." + }, + "snowplow__session_identifiers": { + "recommendFullRefresh": true, + "order": 46, + "consoleGroup": "advanced", + "title": "Session Identifiers", + "group": "Operation and Logic", + "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.", + "packageDefault": "[{\"schema\": \"contexts_com_snowplowanalytics_snowplow_media_session_1\", \"field\": \"media_session_id\", \"prefix\": \"media_session_\"}]", + "type": "array", + "description": "> Click the plus sign to add a new entry", + "minItems": 0, + "items": { + "type": "object", + "title": "Identifier", + "properties": { + "schema": { + "type": "string", + "title": "(JSON) schema name for the field", + "order": 1, + "description": "The schema name of your events table, atomic in most use cases, alternatively for sdes/contexts this should instead be the name of the field itself" + }, + "field": { + "type": "string", + "order": 2, + "title": "Field name", + "description": "The name of the field to use as session identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" + } + }, + "required": [ + "schema", + "field" + ], + "additionalProperties": false + }, + "uniqueItems": true + }, + "snowplow__session_sql": { + "recommendFullRefresh": true, + "order": 47, + "consoleGroup": "advanced", + "type": "string", + "title": "SQL for your session identifier", + "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.", + "packageDefault": "", + "group": "Operation and Logic" + }, + "snowplow__session_timestamp": { + "recommendFullRefresh": false, + "order": 55, + "consoleGroup": "advanced", + "type": "string", + "title": "Timestamp used for incremental processing, should be your partition field", + "group": "Operation and Logic", + "longDescription": "Determines which timestamp is used to build the sessionization logic. It's a good idea to have this timestamp be the same timestamp as the field you partition your events table on.", + "packageDefault": "collector_tstamp" + }, + "snowplow__user_identifiers": { + "recommendFullRefresh": true, + "order": 48, + "consoleGroup": "advanced", + "title": "User Identifiers", + "group": "Operation and Logic", + "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.", + "packageDefault": "[{\"schema\" : \"atomic\", \"field\" : \"domain_userid\", \"prefix\": \"user_\"}]", + "type": "array", + "description": "> Click the plus sign to add a new entry", + "minItems": 0, + "items": { + "type": "object", + "title": "Identifier", + "properties": { + "schema": { + "type": "string", + "title": "(JSON) schema name for the field", + "order": 1, + "description": "The schema name of your events table, atomic in most use cases, alternatively for sdes/contexts this should instead be the name of the field itself" + }, + "field": { + "type": "string", + "order": 2, + "title": "Field name", + "description": "The name of the field to use as user identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" + } + }, + "required": [ + "schema", + "field" + ], + "additionalProperties": false + }, + "uniqueItems": true + }, + "snowplow__user_sql": { + "recommendFullRefresh": true, + "order": 49, + "consoleGroup": "advanced", + "type": "string", + "title": "SQL for your user identifier", + "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.", + "packageDefault": "", + "group": "Operation and Logic" + }, + "snowplow__app_id": { + "recommendFullRefresh": false, + "order": 8, + "consoleGroup": "basic", + "type": "array", + "description": "> Click the plus sign to add a new entry", + "minItems": 0, + "title": "App IDs", + "longDescription": "A list of `app_id`s to filter the events table on for processing within the package.", + "packageDefault": "[ ] (no filter applied)", + "group": "Contexts, Filters, and Logs", + "items": { + "type": "string" + } + }, + "snowplow__enable_whatwg_media": { + "recommendFullRefresh": false, + "order": 34, + "consoleGroup": "basic", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Set to `true` if the [HTML5 media element context schema](https://github.com/snowplow/iglu-central/blob/master/schemas/org.whatwg/media_element/jsonschema/1-0-0) is enabled. This variable is used to handle syntax depending on whether the context fields are available in the database or not.", + "packageDefault": "false", + "title": "Enable WhatWG Media Module" + }, + "snowplow__enable_whatwg_video": { + "recommendFullRefresh": false, + "order": 35, + "consoleGroup": "basic", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Set to `true` if the [HTML5 video element context schema](https://github.com/snowplow/iglu-central/blob/master/schemas/org.whatwg/video_element/jsonschema/1-0-0) is enabled. This variable is used to handle syntax depending on whether the context fields are available in the database or not.", + "packageDefault": "false", + "title": "Enable WhatWG Video Module" + }, + "snowplow__enable_youtube": { + "recommendFullRefresh": false, + "order": 36, + "consoleGroup": "basic", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Set to `true` if the [YouTube context schema](https://github.com/snowplow/iglu-central/blob/master/schemas/com.youtube/youtube/jsonschema/1-0-0) is enabled. This variable is used to handle syntax depending on whether the context fields are available in the database or not.", + "packageDefault": "false", + "title": "Enable YouTube Module" + }, + "snowplow__enable_media_player_v1": { + "recommendFullRefresh": false, + "order": 31, + "consoleGroup": "required", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Set to `true` if the [version 1 of the media player context schema](https://github.com/snowplow/iglu-central/blob/master/schemas/com.snowplowanalytics.snowplow/media_player/jsonschema/1-0-0) is enabled. This schema was used in our older media plugins on the JavaScript tracker. It is not tracked in the latest versions.", + "packageDefault": "false", + "title": "Enable Media Player v1 Module" + }, + "snowplow__enable_media_player_v2": { + "recommendFullRefresh": false, + "order": 32, + "consoleGroup": "required", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Set to `true` if the [version 2 of the media player context schema](https://github.com/snowplow/iglu-central/blob/master/schemas/com.snowplowanalytics.snowplow/media_player/jsonschema/2-0-0) is enabled. This is tracked by our latest JavaScript and mobile trackers.", + "packageDefault": "true", + "title": "Enable Media Player v2 Module" + }, + "snowplow__enable_media_session": { + "recommendFullRefresh": false, + "order": 33, + "consoleGroup": "basic", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Set to `true` if the [media session context schema](https://github.com/snowplow/iglu-central/blob/master/schemas/com.snowplowanalytics.snowplow.media/session/jsonschema/1-0-0) is enabled. This is tracked by our latest JavaScript and mobile trackers (optional but enabled by default).", + "packageDefault": "false", + "title": "Enable Media Session Module" + }, + "snowplow__enable_media_ad": { + "recommendFullRefresh": false, + "order": 29, + "consoleGroup": "basic", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Set to `true` if the [media ad context schema](https://github.com/snowplow/iglu-central/blob/master/schemas/com.snowplowanalytics.snowplow.media/ad/jsonschema/1-0-0) is enabled. This is tracked by our latest JavaScript and mobile trackers along with ad events.", + "packageDefault": "false", + "title": "Enable Media Ad Module" + }, + "snowplow__enable_media_ad_break": { + "recommendFullRefresh": false, + "order": 30, + "consoleGroup": "basic", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Set to `true` if the [media ad-break context schema](https://github.com/snowplow/iglu-central/blob/master/schemas/com.snowplowanalytics.snowplow.media/ad_break/jsonschema/1-0-0) is enabled. This is tracked by our latest JavaScript and mobile trackers when ad breaks are tracked along with ad events.", + "packageDefault": "false", + "title": "Enable Media Ad Break Module" + }, + "snowplow__enable_web_events": { + "recommendFullRefresh": false, + "order": 11, + "consoleGroup": "required", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Whether to use the web contexts for web media events in the processing (based on the web page context).", + "packageDefault": "true", + "title": "Enable Web Events Module" + }, + "snowplow__enable_mobile_events": { + "recommendFullRefresh": false, + "order": 13, + "consoleGroup": "required", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Whether to use the mobile contexts for mobile media events in the processing (based on the client session and screen view context).", + "packageDefault": "false", + "title": "Enable Mobile Events Module" + }, + "snowplow__enable_ad_quartile_event": { + "recommendFullRefresh": false, + "order": 28, + "consoleGroup": "basic", + "type": "boolean", + "group": "Contexts, Filters, and Logs", + "longDescription": "Set to `true` if [ad quartile events](https://github.com/snowplow/iglu-central/blob/master/schemas/com.snowplowanalytics.snowplow.media/ad_quartile_event/jsonschema/1-0-0) are tracked during media ad playback.", + "packageDefault": "false", + "title": "Enable Ad Quartile Module" + }, + "snowplow__base_passthroughs": { + "recommendFullRefresh": false, + "order": 63, + "consoleGroup": "advanced", + "title": "Base Passthroughs", + "group": "Contexts, Filters, and Logs", + "longDescription": "Field(s) to carry through from the events table to the `snowplow_media_player_base` and `snowplow_media_player_plays_by_page_view` derived tables. The field is from the media base event record. 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.", + "packageDefault": "[ ] (no passthroughs)", + "$ref": "#/definitions/passthrough_vars" + }, + "snowplow__ad_views_passthroughs": { + "recommendFullRefresh": false, + "order": 60, + "consoleGroup": "advanced", + "title": "Base Passthroughs", + "group": "Contexts, Filters, and Logs", + "longDescription": "Field(s) to carry through from the events table to the `snowplow_media_player_media_ad_views` derived table. The field is from the ad view event record. 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.", + "packageDefault": "[ ] (no passthroughs)", + "$ref": "#/definitions/passthrough_vars" + }, + "snowplow__enable_load_tstamp": { + "recommendFullRefresh": false, + "order": 99, + "consoleGroup": "advanced", + "type": "boolean", + "warehouse": "Redshift", + "title": "(Redshift) Enable load_tstamp", + "longDescription": "Flag to include the `load_tstamp` column in the base events this run model. This should be set to true (the default) unless you are using the Postgres loader or an RDB loader version less than 4.0.0. It must be true to use consent models on Postgres and Redshift.", + "packageDefault": "true", + "group": "Warehouse Specific" + }, + "snowplow__derived_tstamp_partitioned": { + "recommendFullRefresh": false, + "order": 9, + "consoleGroup": "basic", + "type": "boolean", + "warehouse": "Bigquery", + "title": "(Bigquery) Derived Timestamp Partition", + "longDescription": "Boolean to enable filtering the events table on `derived_tstamp` in addition to `collector_tstamp`.", + "packageDefault": "true", + "group": "Warehouse Specific" + }, + "snowplow__entities_or_sdes": { + "recommendFullRefresh": false, + "order": 104, + "consoleGroup": "advanced", + "title": "(Redshift) Entities or SDEs", + "longDescription": "A list of dictionaries defining the `entity` or `self-describing` event tables to join onto your base events table. Please use the tool below or see the section on [Utilizing custom contexts or SDEs](/docs/modeling-your-data/modeling-your-data-with-dbt/package-features/modeling-entities/) for details of the structure.", + "packageDefault": "[]", + "warehouse": "Redshift", + "group": "Warehouse Specific", + "type": "array", + "description": "> Click the plus sign to add a new entry", + "minItems": 0, + "items": { + "type": "object", + "title": "Entity or SDE", + "properties": { + "schema": { + "type": "string", + "title": "Table name", + "description": "Table name", + "order": 1 + }, + "prefix": { + "type": "string", + "title": "Column prefix", + "description": "Prefix to add to columns", + "order": 2 + }, + "alias": { + "type": "string", + "title": "CTE Alias", + "description": "Table alias for the subquery", + "order": 3 + }, + "single_entity": { + "type": "boolean", + "title": "Is single entity?", + "order": 4 + } + }, + "required": [ + "schema", + "prefix" + ], + "additionalProperties": false + }, + "uniqueItems": true + }, + "snowplow__grant_select_to": { + "recommendFullRefresh": false, + "order": 106, + "consoleGroup": "advanced", + "type": "array", + "description": "> Click the plus sign to add a new entry", + "minItems": 0, + "items": { + "type": "string", + "title": "User/Role" + }, + "title": "Grant Select List", + "group": "Warehouse and Tracker", + "longDescription": "A list of users to grant select to all tables created by this package to.", + "packageDefault": "[]" + }, + "snowplow__grant_schema_usage": { + "recommendFullRefresh": false, + "order": 105, + "consoleGroup": "advanced", + "type": "boolean", + "description": "Enable granting usage on schemas", + "title": "Enable grant usage", + "group": "Warehouse and Tracker", + "longDescription": "Enables granting usage on schemas interacted with on a dbt run", + "packageDefault": "true" + } + } +} From 5feab0e3bdbb1b9d2f8f007a47b29ec0b47e453d Mon Sep 17 00:00:00 2001 From: Ilias Xenogiannis Date: Fri, 11 Oct 2024 16:53:18 +0300 Subject: [PATCH 2/3] Update _model-versions.md --- .../_model-versions.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/modeling-your-data/modeling-your-data-with-dbt/_model-versions.md b/docs/modeling-your-data/modeling-your-data-with-dbt/_model-versions.md index 0f9680f9d2..e6b60c2353 100644 --- a/docs/modeling-your-data/modeling-your-data-with-dbt/_model-versions.md +++ b/docs/modeling-your-data/modeling-your-data-with-dbt/_model-versions.md @@ -25,14 +25,15 @@ import {versions} from '@site/src/componentVersions'; =1.4.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | -| 0.5.3 | >=0.14.0 to <0.16.0 | >=1.4.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | -| 0.4.2 | >=0.13.0 to <0.14.0 | >=1.3.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | -| 0.4.1 | >=0.12.0 to <0.13.0 | >=1.3.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | -| 0.3.4 | >=0.9.0 to <0.12.0 | >=1.0.0 to <1.3.0 | ✅ | ✅ | ✅ | ✅ | ✅ | -| 0.1.0 | >=0.6.0 to <0.7.0 | >=0.20.0 to <1.1.0 | ❌ | ❌ | ✅ | ❌ | ✅ | +| snowplow-media-player version | snowplow-web version | dbt versions | BigQuery | Databricks | Redshift | Snowflake | Postgres | Spark | +| ---------------------------------- | -------------------- | ------------------ | :------: | :--------: | :------: | :-------: | :------: | :------: | +| ${versions.dbtSnowplowMediaPlayer} | N/A | >=1.4.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| ${versions.dbtSnowplowMediaPlayer} | N/A | >=1.4.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | +| 0.5.3 | >=0.14.0 to <0.16.0 | >=1.4.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | +| 0.4.2 | >=0.13.0 to <0.14.0 | >=1.3.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | +| 0.4.1 | >=0.12.0 to <0.13.0 | >=1.3.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | +| 0.3.4 | >=0.9.0 to <0.12.0 | >=1.0.0 to <1.3.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | +| 0.1.0 | >=0.6.0 to <0.7.0 | >=0.20.0 to <1.1.0 | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | `} remarkPlugins={[remarkGfm]} /> From 30be73125761d38d4c1694a81d410a968d1430ff Mon Sep 17 00:00:00 2001 From: Ilias Xenogiannis Date: Tue, 15 Oct 2024 12:00:55 +0300 Subject: [PATCH 3/3] Update _model-versions.md --- .../modeling-your-data-with-dbt/_model-versions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/modeling-your-data/modeling-your-data-with-dbt/_model-versions.md b/docs/modeling-your-data/modeling-your-data-with-dbt/_model-versions.md index e6b60c2353..971e7b7787 100644 --- a/docs/modeling-your-data/modeling-your-data-with-dbt/_model-versions.md +++ b/docs/modeling-your-data/modeling-your-data-with-dbt/_model-versions.md @@ -25,10 +25,10 @@ import {versions} from '@site/src/componentVersions'; =1.4.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| ${versions.dbtSnowplowMediaPlayer} | N/A | >=1.4.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | +| snowplow-media-player version | snowplow-web version | dbt versions | BigQuery | Databricks | Redshift | Snowflake | Postgres | Spark | +| ---------------------------------- | -------------------- | ------------------ | :------: | :--------: | :------: | :-------: | :------: | :------: | +| ${versions.dbtSnowplowMediaPlayer} | N/A | >=1.4.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | +| 0.8.0 | N/A | >=1.4.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | | 0.5.3 | >=0.14.0 to <0.16.0 | >=1.4.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | | 0.4.2 | >=0.13.0 to <0.14.0 | >=1.3.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | | 0.4.1 | >=0.12.0 to <0.13.0 | >=1.3.0 to <2.0.0 | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |