Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add column to stg_tpch_customers #113

Open
wants to merge 4 commits into
base: main-apac
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion models/marts/core/dim_customers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ region as (
),
final as (
select
customer.customer_key,
1 as customer.customer_key,
customer.name,
customer.address,
{# nation.nation_key as nation_key, #}
Expand Down
4 changes: 3 additions & 1 deletion models/staging/tpch/stg_tpch_customers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ renamed as (
c_phone as phone_number,
c_acctbal as account_balance,
c_mktsegment as market_segment,
c_comment as comment
c_comment as comment,
1 as new_num,
2 as newer_num

from source

Expand Down