-
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
[Bug] state:modified not working for windows machine #10574
Comments
Thanks for reaching out @abrown-calix ! Could you double-check that the The precise instructions to check those environment variables will vary depending on the Windows terminal they are using. But I'll try to include a few of the most common ones. Command Prompt (CMD)echo %DBT_DEFER%
echo %DBT_STATE% PowerShell$env:DBT_DEFER
$env:DBT_STATE Windows Subsystem for Linux (WSL) or another Unix-like shells on Windowsecho $DBT_DEFER
echo $DBT_STATE |
Could you try a few other things and see if any of them work for the Windows users?
|
Ran into the same issue. Running |
@ybryzTE Could you share more details about the solution you used? e.g., which editor you are using, how to changed the line breaks, which files it affected, etc? Were you using the @abrown-calix did you try specifying If it is isolated to the If if is isolated to the You could try troubleshooting by doing commands like this and see if they work the way you expect or not (both in relation to the contents in dbt run --select state:modified --defer --state prod_manifest If that works, then you could do each of these and see if they work or not (making sure that your desired environment variables are set in both cases): dbt run --select state:modified --state prod_manifest
dbt run --select state:modified --defer |
Is this a new bug in dbt-core?
Current Behavior
We have set environment variables DBT_DEFER=true and DBT_STATE= path to prod manifest file. When we run dbt run -m <model_name> and look at the manifest.json the deferred is true (deferred: true). However when we run command: dbt run -m state:modified or dbt run --select state:modified the deferred is false (deferred: false). This causes dbt to run ALL models as the database listed in the manifest.json file is not correct.
This seems to only happen for those with windows machines. We have a few folks on our team that have macs and everything works fine.
Expected Behavior
When we run: dbt run -m state:modified, it should ONLY run the modified model not all models. The deferred flag in the manifest.json should be deferred: true.
Steps To Reproduce
Relevant log output
Incorrect manifest:
Correct manifest:
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
The text was updated successfully, but these errors were encountered: