File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
include/fabric/macros/materializations/snapshots Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ def get_relation_type(cls) -> Type[FabricRelationType]:
1818
1919 @classmethod
2020 def render_limited (self ) -> str :
21- rendered = self .render (self = self )
21+ rendered = self .render ()
2222 if self .limit is None :
2323 return rendered
2424 elif self .limit == 0 :
25- return f"(select * from { rendered } where 1=0) _dbt_top_subq "
25+ return f"(select * from { rendered } where 1=0) { self . _render_limited_alias () } "
2626 else :
27- return f"(select TOP { self .limit } * from { rendered } ) _dbt_top_subq "
27+ return f"(select TOP { self .limit } * from { rendered } ) { self . _render_limited_alias () } "
Original file line number Diff line number Diff line change 1111
1212 {% set columns %}
1313 {% for column in columns %}
14- , CAST(NULL AS {{column .data_type }}) AS {{column_name }}
14+ , CAST(NULL AS {{column .data_type }}) AS {{column . name }}
1515 {% endfor %}
1616 {% endset %}
1717
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter
66git+https://github.com/dbt-labs/dbt-common.git
77
88pytest==8.0.1
9- twine==5.0.0
10- wheel==0.42
9+ twine==5.1.1
10+ wheel==0.44.0
1111pre-commit==3.5.0;python_version<"3.9"
12- pre-commit==3.6.2 ;python_version>="3.9"
12+ pre-commit==3.8.0 ;python_version>="3.9"
1313pytest-dotenv==0.5.2
1414flaky==3.7.0
1515pytest-xdist==3.5.0
You can’t perform that action at this time.
0 commit comments