From 137359002eec36998fed5ab25961fc00fdf18d04 Mon Sep 17 00:00:00 2001 From: Taylor Dunlap Date: Wed, 10 Apr 2024 20:21:43 +0000 Subject: [PATCH 1/3] change --- models/marts/core/dim_customers.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/marts/core/dim_customers.sql b/models/marts/core/dim_customers.sql index e86796a..2c32ea1 100644 --- a/models/marts/core/dim_customers.sql +++ b/models/marts/core/dim_customers.sql @@ -29,7 +29,8 @@ final as ( region.name as region, customer.phone_number, customer.account_balance, - customer.market_segment + customer.market_segment, + 'test_column' as test_column from customer inner join nation From 6c2d818c0349d16100e60e344368de6959e5f802 Mon Sep 17 00:00:00 2001 From: Taylor Dunlap Date: Wed, 24 Apr 2024 15:45:08 +0000 Subject: [PATCH 2/3] editing external table --- models/demo_examples/external_sources.yml | 47 ++++++++++++++--------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/models/demo_examples/external_sources.yml b/models/demo_examples/external_sources.yml index e90dd93..3889a54 100644 --- a/models/demo_examples/external_sources.yml +++ b/models/demo_examples/external_sources.yml @@ -39,34 +39,43 @@ sources: - name: pivot_orders_source description: main order tracking table in normalized form - - name: taylor_test_s3 + - name: seahawks_roster description: This is an example of using external sources - database: tdunlap_sandbox_dev - schema: dbt_tdunlap + database: tdunlap_sandbox_sources + schema: examples tables: - - name: taylor_test_s3_external_table + - name: seahawks_2023_roster description: > - This is Taylor's test external table + This is an example of an external snowflake table that references a csv file in S3. external: - location: "@taylor_test_s3_location" + location: "@seahawks" file_format: "(type=csv, field_delimiter=',' skip_header=1)" auto_refresh: true - pattern: '.*de_anaplan/{{ (modules.datetime.datetime.now(modules.pytz.utc) + modules.datetime.timedelta(days=-4, hours=0)).strftime("%Y%m%d") }}/.*' columns: - - name: Column1 - data_type: INT - description: "number of the record" - - name: Column2 + - name: Player data_type: TEXT - description: "letter of the record" - - name: File + description: "Name of the player" + - name: Number + data_type: INT + description: "Number of the player" + - name: Position + data_type: Text + description: "Position of the player" + - name: Status data_type: VARCHAR - description: "The file name" - - name: Date - data_type: NUMBER - description: "Date in numeric format" - - + description: "Active Status of the player" + - name: Height + data_type: INT + description: "Height of the player" + - name: Weight + data_type: INT + description: "Active Status of the player" + - name: Experience + data_type: INT + description: "Years of Experience" + - name: College + data_type: INT + description: "College the player last attended" From 26f5dcdbf8185fa7ebc367e1e305143346f8e4d5 Mon Sep 17 00:00:00 2001 From: Taylor Dunlap Date: Wed, 24 Apr 2024 15:45:57 +0000 Subject: [PATCH 3/3] removing column --- models/marts/core/dim_customers.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/marts/core/dim_customers.sql b/models/marts/core/dim_customers.sql index 2c32ea1..e86796a 100644 --- a/models/marts/core/dim_customers.sql +++ b/models/marts/core/dim_customers.sql @@ -29,8 +29,7 @@ final as ( region.name as region, customer.phone_number, customer.account_balance, - customer.market_segment, - 'test_column' as test_column + customer.market_segment from customer inner join nation