Ask Your Question
4

What is the method of accessing the source configuration through jinja in dbt models?

asked 2022-07-08 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-02-28 22:00:00 +0000

lakamha gravatar image

In dbt models, the source configuration can be accessed using jinja by referencing the source() function followed by the source name and configuration attribute. For example:

{{ source('my_source_name', 'my_config_attribute') }}

This will return the value of the my_config_attribute key in the configuration block for the my_source_name source.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-07-08 11:00:00 +0000

Seen: 1 times

Last updated: Feb 28