-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-2761] [Bug] dbt run-operation command does not honor DBT_TARGET_PATH or accept --target-path parameter #7986
Comments
@timvw I'm surprised you're noticing this difference in behavior between Could you try upgrading to v1.5.2? We included a fix in that patch release which sounds slightly different from the problem you're having, but could possibly be related: |
Unfortunately no success
|
When I run dbt run-operation --help it does not mention the --target-path parameter (I know, in main.py i see that both operations have an @p.target_path attribute..) But.. When I try to invoke dbt run-operation with a --target-path
|
Can you try putting the flag before the subcommand? It's a "global" flag:
(I'm not sure why that would work, and the env var wouldn't work, but just to try!) |
The same result, not working..
|
@timvw I was suggesting that you put the Again, I doubt it would have an actually different result versus setting the |
Also no success...
|
Ah! We added Sorry for the run-around. I'm positive that's what's at play here. I'm going to close this as a duplicate of #7953 |
Is this a new bug in dbt-core?
Current Behavior
Currently DBT_TARGET_PATH is not honored
Expected Behavior
DBT_TARGET_PATH is honored
Steps To Reproduce
-> A ./target folder is created with following files: graph.gpickle, manifest.json and partial_parse.msgpack
Environment
Which database adapter are you using with dbt?
spark, other (mention it in "Additional Context")
Additional Context
This causes issues in constrained environments where not each (./target) folder is write-able.
When running dbt compile it is clear that DBT_TARGET_PATH is respected
-> No ./target folder is created
The text was updated successfully, but these errors were encountered: