-
Notifications
You must be signed in to change notification settings - Fork 121
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
Make internal macros use macro dispatch pattern #72
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f6e875e
Fix macro names to use the same names as dbt-spark.
ueshin e55052b
changelog
ueshin d673195
Fix.
ueshin 373449d
Fix.
ueshin 5886079
Fix.
ueshin c59db8c
Fix.
ueshin 795b1b5
changelog
ueshin d4734ef
Fix.
ueshin c81b5b3
Fix.
ueshin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
dbt/include/databricks/macros/materializations/incremental/strategies.sql
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ commands = /bin/bash -c '$(which black) --config black.ini --check .' | |
/bin/bash -c '$(which mypy) --config-file mypy.ini --namespace-packages --explicit-package-bases dbt tests' | ||
passenv = DBT_* PYTEST_ADDOPTS | ||
deps = | ||
-r{toxinidir}/requirements.txt | ||
-r{toxinidir}/dev_requirements.txt | ||
-r{toxinidir}/requirements.txt | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is needed because we need to install the latest dbt-spark version first? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. |
||
|
||
[testenv:black] | ||
basepython = python3 | ||
|
@@ -24,17 +24,17 @@ basepython = python3 | |
commands = /bin/bash -c '{envpython} -m pytest -v {posargs} tests/unit' | ||
passenv = DBT_* PYTEST_ADDOPTS | ||
deps = | ||
-r{toxinidir}/requirements.txt | ||
-r{toxinidir}/dev_requirements.txt | ||
-r{toxinidir}/requirements.txt | ||
|
||
[testenv:integration-databricks-cluster] | ||
basepython = python3 | ||
commands = /bin/bash -c '{envpython} -m pytest -v --profile databricks_cluster tests/functional/adapter/test_basic.py {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret' | ||
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_cluster -n4 tests/integration/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret' | ||
passenv = DBT_* PYTEST_ADDOPTS | ||
deps = | ||
-r{toxinidir}/requirements.txt | ||
-r{toxinidir}/dev_requirements.txt | ||
-r{toxinidir}/requirements.txt | ||
-e. | ||
|
||
[testenv:integration-databricks-uc-cluster] | ||
|
@@ -43,8 +43,8 @@ commands = /bin/bash -c '{envpython} -m pytest -v --profile databricks_uc_cluste | |
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_uc_cluster -n4 tests/integration/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret' | ||
passenv = DBT_* PYTEST_ADDOPTS | ||
deps = | ||
-r{toxinidir}/requirements.txt | ||
-r{toxinidir}/dev_requirements.txt | ||
-r{toxinidir}/requirements.txt | ||
-e. | ||
|
||
[testenv:integration-databricks-sql-endpoint] | ||
|
@@ -53,8 +53,8 @@ commands = /bin/bash -c '{envpython} -m pytest -v --profile databricks_sql_endpo | |
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_sql_endpoint -n4 tests/integration/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret' | ||
passenv = DBT_* PYTEST_ADDOPTS | ||
deps = | ||
-r{toxinidir}/requirements.txt | ||
-r{toxinidir}/dev_requirements.txt | ||
-r{toxinidir}/requirements.txt | ||
-e. | ||
|
||
[testenv:integration-databricks-uc-sql-endpoint] | ||
|
@@ -63,6 +63,6 @@ commands = /bin/bash -c '{envpython} -m pytest -v --profile databricks_uc_sql_en | |
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_uc_sql_endpoint -n4 tests/integration/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret' | ||
passenv = DBT_* PYTEST_ADDOPTS | ||
deps = | ||
-r{toxinidir}/requirements.txt | ||
-r{toxinidir}/dev_requirements.txt | ||
-r{toxinidir}/requirements.txt | ||
-e. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, if a user has re-defined the
file_format_clause
in an existing project, for exampleWill this change (and the upstream change in dbt-spark) break the existing pipeline when the user upgrades the adapter version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to @jtcohen6's explanation in #72 (comment), the user's
file_format_clause
will be used.