-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
Is this a new bug in dbt-core?
- I believe this is a new bug in dbt-core
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
The recently added config.meta_require method implementation omits a return statement
{% set required_meta_setting = config.meta_require('required_meta_setting') %}
{{ log(required_meta_setting, info=True) }}Returns None in the log
Expected Behavior
The setting should be returned in the log
Steps To Reproduce
Add a config like:
models:
iag:
+meta:
required_meta_setting: something
Compile a model like:
select
$${{ config.meta_get('required_meta_setting') }}$$,
$${{ config.meta_require('required_meta_setting') }}$$
It will compile as:
select
$$something$$,
$$None$$
Relevant log output
dbtc compile -s datastore__iag__require_test
Created invocation id 2277ef39-d75f-471d-b4cc-a0ea5dd5c6a0
00:07:39 Cloud CLI invocation created: 2277ef39-d75f-471d-b4cc-a0ea5dd5c6a0
00:07:39 Running dbt...
00:07:40 Unable to do partial parsing because a project config has changed
00:07:40 Unable to do partial parsing because a project config has changed
00:07:46 Found 339 models, 2 snapshots, 24 seeds, 297 data tests, 225 sources, 11 exposures, 1017 macros, 1 group, 13 unit tests
00:07:46
00:07:46 Concurrency: 4 threads (target='default')
00:07:46
00:07:46 Found 339 models, 2 snapshots, 24 seeds, 297 data tests, 225 sources, 11 exposures, 1017 macros, 1 group, 13 unit tests
00:07:47 Compiled node 'datastore__iag__require_test' is:
select
$$something$$,
$$None$$Environment
- OS: WSL
- Python: 3.12.3
- dbt: latest dbt Cloud release track: 2025.12.16+16a1c6fWhich database adapter are you using with dbt?
No response
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working