Change the default behavior of get_show_sql
to avoid wrapping in subquery
#207
Labels
enhancement
New feature or request
get_show_sql
to avoid wrapping in subquery
#207
Context:
order by
clauses withdbt show --limit
dbt-core#9600Implementation:
get_show_sql
should not wrap in a subquery. Instead, it should simply appendlimit {{ limit }}
to the end of the query.limit
clause, but it preserves ordering in all other cases.dbt show
, which is a development (not production) workflow, I do not believe this needs to be gated behind a behavior change flag. Users can always opt back into the previous behavior by reimplementingget_show_sql
within their projects.Acceptance tests:
BaseShowLimit.test_limit
is validating only that thelimit
is templated into the query (important!)The text was updated successfully, but these errors were encountered: