-
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] TypeError: 'NoneType' object is not subscriptable #10890
Comments
Do you have any kind of unit test in this model and that model uses var / env_var? |
We dont have unit test for this model
This is profile.yml
dbt debug
|
After creating local profile as well its not working giving below error
proflies.yml
|
Sorry, I forgot that unit tests are not available in older versions of dbt. I suspected that you were facing the same issue I had because of the exact same error message due vars. But version 1.4.1 is old. Have you tested this in a newer version of dbt, maybe 1.7 or 1.8? |
@vaibhav2ghadge Thanks for opening this issue -- echoing what @devmessias asked, interested if you get this error with dbt-core 1.7 or 1.8 (since 1.4 is EOL) |
Yes, we are facing the same issues on the latest DBT 1.8.7 & athena adapter 1.8.4. |
I am able to run DBT model but I need to pass |
That is quite strange. If you're not using |
yesterdays_date We are using it in another model just to try I have passed this value to those models that are failing then this model started working. Is there any configuration that we are missing? |
If model B depends on A, and A depends on a variable, I think you would get the expected output if this variable was not available when running model B. If that's not the case, and B doesn't depend on A, could you please share the details of models B and A here? |
One issue (dbt-labs/dbt-common#206) here is that a type error in dbt doesn't provide the model information (I have an open PR for that: dbt-labs/dbt-common#207). If you could provide a minimal example of your project, I can run it on my local dbt branch, where I have this behavior fixed in dbt, and we could narrow down where the issue is occurring. |
Is this a new bug in dbt-core?
Current Behavior
Our dbt model suddenly stopped working. Our DBT model is running on Athena and storing data on s3
below is the command for how we are running
dbt run --models demo_model --profiles-dir /opt/dbt-dep/mario/dbt/profiles/ --target dummy_target --vars '{"week_start_date": "2024-10-14","week_end_date": "2024-10-20"}'
Expected Behavior
Model should run on athena and should store data on s3
Steps To Reproduce
dbt run --models demo_model --profiles-dir /opt/dbt-dep/mario/dbt/profiles/ --target dummy_target --vars '{"week_start_date": "2024-10-14","week_end_date": "2024-10-20"}'
Relevant log output
Environment
Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
No response
The text was updated successfully, but these errors were encountered: