Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

feat(fal): add dbt 1.5 support #841

Merged
merged 22 commits into from
May 12, 2023
Merged

feat(fal): add dbt 1.5 support #841

merged 22 commits into from
May 12, 2023

Conversation

chamini2
Copy link
Member

@chamini2 chamini2 commented Apr 28, 2023

  • snowflake
  • bigquery
  • postgres

dbt-labs/dbt-core#7465 is making it hard to reliably know where to search for artifacts (e.g. run_results) so we are still using the deprecated target-path in dbt_project.yml for pytest and we may need to use it for integration tests

closes #846
closes FEA-1037

@chamini2 chamini2 force-pushed the matteo/fal-1.5.0 branch from 45b0afb to 09a9981 Compare May 2, 2023 22:24
@chamini2 chamini2 force-pushed the matteo/fal-1.5.0 branch from 5c97987 to 460f677 Compare May 4, 2023 16:48
@chamini2 chamini2 force-pushed the matteo/fal-1.5.0 branch from 70dd358 to 5cb5545 Compare May 4, 2023 22:47
@linear
Copy link

linear bot commented May 10, 2023

@chamini2 chamini2 force-pushed the matteo/fal-1.5.0 branch from d643200 to 728b937 Compare May 10, 2023 23:15
@chamini2 chamini2 marked this pull request as ready for review May 11, 2023 19:36
@chamini2 chamini2 requested a review from mederka May 11, 2023 19:36
@chamini2 chamini2 requested a review from a team May 11, 2023 19:37
Copy link
Collaborator

@mederka mederka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks great! Really awesome how things just seem to be tidier.

Great job, @chamini2 👏

# fal-format Python models
generated_models = generate_python_dbt_models(parsed.project_dir, arg_vars)
generated_models = generate_python_dbt_models(parsed.project_dir, parsed.vars)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When are we dropping these?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When are we dropping these?

Did not really underrstand the question.

I just introduced --vars support for fal run too (wanted to use vars for a different use and added it). But it's really not related to dbt 1.5

Comment on lines +93 to +96
# HACK: issue in dbt-core 1.5.0 https://github.com/dbt-labs/dbt-core/issues/7465
env_target_path = os.getenv("DBT_TARGET_PATH")
if env_target_path:
config.target_path = env_target_path
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will target changes require any action from current users that want to update to 1.5?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change, it should just work no matter how the use it. The thing is that maybe for 1.5.1 we will need to release a new fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fal is not compatible with dbt 1.5.0
2 participants