We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d94cdd commit dd918edCopy full SHA for dd918ed
dbt/include/fabric/macros/adapters/show.sql
@@ -2,7 +2,7 @@
2
{%- if limit == -1 or limit is none -%}
3
{{ sql }}
4
{#- Special processing if the last non-blank line starts with order by -#}
5
- {%- elif 'order by' in sql.strip().splitlines()[-1].strip().lower() -%}
+ {%- elif sql.strip().splitlines()[-1].strip().lower().startswith('order by') -%}
6
7
offset 0 rows fetch first {{ limit }} rows only
8
{%- else -%}
0 commit comments