Skip to content

Add regression tests for limit handling in test SQL generation (#638).#675

Merged
axellpadilla merged 1 commit into
dbt-msft:masterfrom
Benjamin-Knight:test/#638-limit-handling-regression
May 20, 2026
Merged

Add regression tests for limit handling in test SQL generation (#638).#675
axellpadilla merged 1 commit into
dbt-msft:masterfrom
Benjamin-Knight:test/#638-limit-handling-regression

Conversation

@Benjamin-Knight

@Benjamin-Knight Benjamin-Knight commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Covers sqlserver__get_test_sql's top (...) conditional both with and without an explicit limit config on a generic test.
Fixes #638

…sft#638).

Covers sqlserver__get_test_sql's `top (...)` conditional both with and
without an explicit `limit` config on a generic test. The macro currently
guards correctly (`if limit != none`); these tests trip if that guard is
ever removed or broken — without them, a regression that produced
`select top () failures …` would only surface against models where tests
actually run.

No production change.
@axellpadilla axellpadilla merged commit 92718ed into dbt-msft:master May 20, 2026
53 checks passed
@Benjamin-Knight Benjamin-Knight deleted the test/#638-limit-handling-regression branch May 21, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unique test on seed fails with "Invalid column name 'None'" in dbt-sqlserver 1.9.0

2 participants