-
Notifications
You must be signed in to change notification settings - Fork 30
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 #201 from microsoft/v1.8.8-draft
Added support for truncate, fixed seed batch calculation and fixed dbt-show errors
- Loading branch information
Showing
4 changed files
with
24 additions
and
23 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.7" | ||
version = "1.8.8" |
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 |
---|---|---|
@@ -1,14 +1,24 @@ | ||
{% macro fabric__get_limit_subquery_sql(sql, limit) %} | ||
{% macro fabric__get_limit_sql(sql, limit) %} | ||
|
||
{% if sql.strip().lower().startswith('with') %} | ||
{{ sql }} order by (select null) | ||
offset 0 rows fetch first {{ limit }} rows only | ||
{% else -%} | ||
select * | ||
from ( | ||
{% if limit == -1 or limit is none %} | ||
{% if sql.strip().lower().startswith('with') %} | ||
{{ sql }} | ||
) as model_limit_subq order by (select null) | ||
offset 0 rows fetch first {{ limit }} rows only | ||
{% else -%} | ||
select * | ||
from ( | ||
{{ sql }} | ||
) as model_limit_subq | ||
{%- endif -%} | ||
{% else -%} | ||
{% if sql.strip().lower().startswith('with') %} | ||
{{ sql }} order by (select null) | ||
offset 0 rows fetch first {{ limit }} rows only | ||
{% else -%} | ||
select * | ||
from ( | ||
{{ sql }} | ||
) as model_limit_subq order by (select null) | ||
offset 0 rows fetch first {{ limit }} rows only | ||
{%- endif -%} | ||
{%- 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