-
Notifications
You must be signed in to change notification settings - Fork 35
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
V1.8.0 release #245
Merged
V1.8.0 release #245
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
46230f6
Updating fabric dependency to 1.8.4
prdpsvs d736c3d
Update __version__.py
prdpsvs 9b69369
Updating dev requirements to use 1.8.0 core adapter
prdpsvs f7c84c7
Missing paranthesis
prdpsvs 3e12635
1.8.0 updates
prdpsvs f02a176
1.8.0 updates
prdpsvs 709d648
Updating drop relation
prdpsvs 1c6eba1
Updating tests to match assertions and removing dbt-clone due to no s…
prdpsvs e05bcbf
Update tests
prdpsvs f4988a1
Update dev requirements and setup.py
prdpsvs 75694f6
Updating relation cache
prdpsvs da2b8a9
Updating dev requirements and requirements to run dbt-synapse adapter
prdpsvs 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = "1.8.0rc3" | ||
version = "1.8.0" |
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
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
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
4 changes: 1 addition & 3 deletions
4
dbt/include/synapse/macros/materializations/models/view/create_view_as.sql
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
41 changes: 41 additions & 0 deletions
41
dbt/include/synapse/macros/materializations/tests/helpers.sql
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{% macro synapse__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%} | ||
|
||
-- Create target schema in synapse db if it does not | ||
IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = '{{ target.schema }}') | ||
BEGIN | ||
EXEC('CREATE SCHEMA [{{ target.schema }}]') | ||
END | ||
|
||
{% if main_sql.strip().lower().startswith('with') %} | ||
{% set testview %} | ||
{{ target.schema }}.testview_{{ range(1300, 19000) | random }} | ||
{% endset %} | ||
|
||
{% set sql = main_sql.replace("'", "''")%} | ||
EXEC('create view {{testview}} as {{ sql }};') | ||
select | ||
{{ "top (" ~ limit ~ ')' if limit != none }} | ||
{{ fail_calc }} as failures, | ||
case when {{ fail_calc }} {{ warn_if }} | ||
then 'true' else 'false' end as should_warn, | ||
case when {{ fail_calc }} {{ error_if }} | ||
then 'true' else 'false' end as should_error | ||
from ( | ||
select * from {{testview}} | ||
) dbt_internal_test; | ||
|
||
EXEC('drop view {{testview}};') | ||
|
||
{% else -%} | ||
select | ||
{{ "top (" ~ limit ~ ')' if limit != none }} | ||
{{ fail_calc }} as failures, | ||
case when {{ fail_calc }} {{ warn_if }} | ||
then 'true' else 'false' end as should_warn, | ||
case when {{ fail_calc }} {{ error_if }} | ||
then 'true' else 'false' end as should_error | ||
from ( | ||
{{ main_sql }} | ||
) dbt_internal_test | ||
{%- endif -%} | ||
{%- endmacro %} |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# install latest changes in dbt-core | ||
# TODO: how to automate switching from develop to version branches? | ||
git+https://github.com/dbt-labs/dbt-core.git@fc431010ef0bd11ee6a502fc6c9e5e3e75c5d72d#egg=dbt-core&subdirectory=core | ||
git+https://github.com/dbt-labs/dbt-adapters.git@4c289b150853b94beb67921f2a8dd203abe53cbe | ||
git+https://github.com/dbt-labs/dbt-adapters.git@4c289b150853b94beb67921f2a8dd203abe53cbe#subdirectory=dbt-tests-adapter | ||
git+https://github.com/dbt-labs/[email protected]#egg=dbt-core&subdirectory=core | ||
git+https://github.com/dbt-labs/dbt-adapters.git | ||
git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter | ||
git+https://github.com/dbt-labs/dbt-common.git | ||
|
||
pytest==8.0.1 | ||
twine==5.0.0 | ||
|
@@ -11,7 +12,8 @@ pre-commit==3.5.0;python_version<"3.9" | |
pre-commit==3.6.2;python_version>="3.9" | ||
pytest-dotenv==0.5.2 | ||
aiohttp==3.8.3 | ||
azure-mgmt-synapse==2.0.0 | ||
#azure-mgmt-synapse==2.0.0 | ||
flaky==3.7.0 | ||
pytest-xdist==3.5.0 | ||
-e . | ||
#-e /mnt/c/users/pvenkat/repos/dbt-fabric |
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
Oops, something went wrong.
Oops, something went wrong.
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.
if
fabric__list_relations_without_caching
hasget_use_database_sql(schema_relation.database)
in it, thendbt-synapse
doesn't even need it's own version oflist_relations_without_caching
. It can just usedbt-fabric
's out of the box. this was my theory at least