-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #245 from microsoft/v1.8.0
V1.8.0 release
- Loading branch information
Showing
17 changed files
with
112 additions
and
314 deletions.
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.