Skip to content

Commit dd918ed

Browse files
committed
include only lines that start with order by
1 parent 4d94cdd commit dd918ed

File tree

1 file changed

+1
-1
lines changed
  • dbt/include/fabric/macros/adapters

1 file changed

+1
-1
lines changed

dbt/include/fabric/macros/adapters/show.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{%- if limit == -1 or limit is none -%}
33
{{ sql }}
44
{#- Special processing if the last non-blank line starts with order by -#}
5-
{%- elif 'order by' in sql.strip().splitlines()[-1].strip().lower() -%}
5+
{%- elif sql.strip().splitlines()[-1].strip().lower().startswith('order by') -%}
66
{{ sql }}
77
offset 0 rows fetch first {{ limit }} rows only
88
{%- else -%}

0 commit comments

Comments
 (0)