Skip to content
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

feat(FIR-29284): dbt 1.7 support #134

Merged
merged 13 commits into from
Aug 23, 2024
Merged

feat(FIR-29284): dbt 1.7 support #134

merged 13 commits into from
Aug 23, 2024

Conversation

ptiurin
Copy link
Collaborator

@ptiurin ptiurin commented Aug 21, 2024

Resolves #111

Description

Update the connector to be compatible with dbt 1.7:

  • big refactor of relations into their own dirs
  • Improvement to catalog relations sql and adding where clause
  • Many more tests

Checklist

  • I have run this code in development and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required/relevant for this PR.
  • I have run changie new and committed everything in .changes folder
  • I have removed any print or log calls that were added for debugging.
  • I have verified that this PR contains only code changes relevant to this PR.
  • If further integration tests are now passing I've edited tests/functional/adapter/* to account for this.
  • I have pulled/merged from the main branch if there are merge conflicts.
  • After pulling/merging main I have run pytest on the included or updated tests/functional/adapter/.

Copy link

@ptiurin ptiurin marked this pull request as ready for review August 22, 2024 12:23
@ptiurin ptiurin requested a review from a team as a code owner August 22, 2024 12:23
Copy link
Collaborator

@stepansergeevitch stepansergeevitch left a comment

Choose a reason for hiding this comment

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

LGTM, one question

@@ -183,90 +183,6 @@
{{ return(info_table) }}
{% endmacro %}


{% macro firebolt__create_table_as(temporary,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why don't we need these anymore? Can we use the default dbt implementation now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They've a part of the big dbt refactor. Now this (as well as the view macros) live in their respective subdirectories. e.g. dbt/include/firebolt/macros/relations/table/create.sql instead of everything living in the adapters.sql

@ptiurin ptiurin merged commit 521748f into main Aug 23, 2024
7 of 9 checks passed
@ptiurin ptiurin deleted the dbt-1.7-support branch August 23, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upgrade to support dbt-core v1.7.0
2 participants