Skip to content

Commit

Permalink
added script variable changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vishreddy01 committed Jan 23, 2024
1 parent 9b6ed4d commit 62310e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ods_dlh_data_processing/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_packages"


vars:
# The `start_date` variable will be accessible in all resources
db_fdw_rrs: fdw_ods_rrs_replication
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

with source_data as (

select a.*,26 as Total_Count from fdw_ods_rrs_replication.road_tenure_type_code a
--select a.*,26 as Total_Count from fdw_ods_rrs_replication.road_tenure_type_code a
select a.*,26 as Total_Count from {{ var('db_fdw_rrs') }}.road_tenure_type_code a

)

Expand Down

0 comments on commit 62310e9

Please sign in to comment.