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

[Core] Update listing of keys for the builtin variable dictionary #5841

Open
dbeatty10 opened this issue Jul 25, 2024 · 3 comments
Open

[Core] Update listing of keys for the builtin variable dictionary #5841

dbeatty10 opened this issue Jul 25, 2024 · 3 comments
Labels
content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core size: medium This change will take up to a week to address

Comments

@dbeatty10
Copy link
Contributor

Link to the page(s) on docs.getdbt.com requiring updates

https://docs.getdbt.com/reference/dbt-jinja-functions/builtins

Tell us more about this update

The docs for builtins lists three context variables: ref, source, and config.

But when I examine all the keys, there's a lot more:

dbt_version
var
env_var
return
fromjson
tojson
fromyaml
toyaml
set
set_strict
zip
zip_strict
log
run_started_at
invocation_id
thread_id
modules
flags
print
diff_of_two_dicts
local_md5
target
project_name
context_macro_stack
dbt_metadata_envs
invocation_args_dict
_sql_results
load_result
store_result
store_raw_result
validation
write
render
try_or_compiler_error
load_agate_table
ref
source
metric
config
execute
exceptions
database
schema
adapter
api
column
env
graph
model
pre_hooks
post_hooks
sql
sql_now
adapter_macro
selected_resources
submit_python_job
compiled_code
this
defer_relation

Reviewers/Stakeholders/SMEs

{{ this }}

Related GitHub issues

No response

Additional information

No response

@dbeatty10 dbeatty10 added content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core labels Jul 25, 2024
@nataliefiann nataliefiann added the size: medium This change will take up to a week to address label Sep 16, 2024
@nataliefiann
Copy link
Contributor

I've assigned a medium label to this while we we go through v.1.9 issues but I imagine this will take a day or two to doc

@nataliefiann
Copy link
Contributor

Hiya @dbeatty10

Happy Monday - I hope you're well.

When the doc is updated to add the list of variables - is there a page / site you'd recommend we can link users to to view the variables you found. I was thinking (from a reader's perspective), to add all those variables on one page, may be a bit overwhelming.

Kind Regards
Natalie

@dbeatty10
Copy link
Contributor Author

I didn't go through this list exhaustively, but looking at them quickly, many of them are included on this page: https://docs.getdbt.com/reference/dbt-jinja-functions

So #5119 is tangentially related to this issue also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core size: medium This change will take up to a week to address
Projects
None yet
Development

No branches or pull requests

2 participants