Closed moseleyi closed 3 months ago
Thanks for reporting this @moseleyi
I wonder if this could be caused by a combination of Python 3.12 and dbt in a Windows environment. Does it work if you use Python 3.11 instead?
When I tried this same code with Python 3.12 in macOS, it worked without an issue:
$ dbt run-operation generate_full_name --args '{first_name: test, last_name: test2}'
21:34:27 Running with dbt=1.8.2
21:34:28 Registered adapter: postgres=1.8.1
21:34:28 Unable to do partial parsing because saved manifest not found. Starting full parse.
21:34:29 Found 414 macros
Perhaps.. but last time I had multiple versions of Python, we had other issues with adapters, so would prefer not to install another version of python.. Wasn't 1.8.0 tested with Python 12?
Can you test it with 3.12?
@moseleyi Did you figure out what the issue was for you?
Wasn't 1.8.0 tested with Python 3.12?
Our current CI processes run unit and integration tests for the following Python versions:
We are using Ubuntu 22.04.4 LTS to run our unit tests across all of those Python versions.
We are using Ubuntu 20.04.6 LTS to run our integration tests across all of those Python versions.
Then for Python 3.8 only, we are also running our integration tests using macOS 12.7.5 and Microsoft Windows Server 2022 10.0.20348.
Is this a new bug in dbt-core?
Current Behavior
I execute a macro using
dbt run-operation
and receive an errorExpected Behavior
Macro is executed
Steps To Reproduce
generate_full_name.sql
in/macros
folderdbt run-operation generate_full_name --args '{first_name: test, last_name: test2}'
Relevant log output
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
No response