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

Refactor of the Code Base #18

Merged
merged 4 commits into from
Mar 2, 2022
Merged

Refactor of the Code Base #18

merged 4 commits into from
Mar 2, 2022

Conversation

arosychuk
Copy link
Contributor

A big refactor of the code base.

Modeled it off of how dbt structures their global_macros and also created a table to see what we support, and what we don't, and for what is NOT supported, throw an exception, and hope someone creates an Issue or Pull Request to implement it.

All tests still pass successfully. There was failures along the refactoring, which is a good sign the tests actually work, and I haven't broken anything that was being tested.

@arosychuk arosychuk self-assigned this Mar 2, 2022
@arosychuk arosychuk linked an issue Mar 2, 2022 that may be closed by this pull request
Copy link
Contributor

@andyreagan andyreagan left a comment

Choose a reason for hiding this comment

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

LGTM.

Having the tests in place makes these kinds of refactors possible!

@@ -0,0 +1,65 @@
# dbt-vertica Macro Implementations

Below is a table for what macros the current Vertica adapter supports for dbt. This is constantly improving and changing as both dbt adds new functionality, as well as the dbt-vertica driver improvies. This list is based upon dbt 1.0.3, with the list found under https://github.com/dbt-labs/dbt-core/tree/main/core/dbt/include/global_project/macros.
Copy link
Contributor

Choose a reason for hiding this comment

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

improvies -> improves

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Fixed the typo.

It definitely makes life easier for developers. I saw they were refactoring the whole testing suite, removing a lot of the "magic" from what's going on behind the scenes.

@arosychuk arosychuk merged commit bec9908 into master Mar 2, 2022
@arosychuk arosychuk deleted the refactor-adapter-macros branch March 2, 2022 20:44
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.

Audit dbt default macros vs dbt-vertica macros
2 participants