Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New behavior with limit parameter #5832

Merged
merged 7 commits into from
Jul 24, 2024
Merged

New behavior with limit parameter #5832

merged 7 commits into from
Jul 24, 2024

Conversation

nghi-ly
Copy link
Contributor

@nghi-ly nghi-ly commented Jul 23, 2024

What are you changing in this pull request and why?

Add release note that informs users about new behavior with limit argument in SQL queries

Checklist

@nghi-ly nghi-ly requested a review from joellabes July 23, 2024 22:49
@nghi-ly nghi-ly requested a review from a team as a code owner July 23, 2024 22:49
Copy link

vercel bot commented Jul 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Jul 24, 2024 4:23pm

@github-actions github-actions bot added content Improvements or additions to content size: x-small This change will take under 3 hours to fix. Docs team Authored by the Docs team @dbt Labs labels Jul 23, 2024
Copy link
Contributor

@joellabes joellabes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of suggested tweaks but otherwise lgtm!!

@@ -19,6 +19,8 @@ Release notes are grouped by month for both multi-tenant and virtual private clo
[^*] The official release date for this new format of release notes is May 15th, 2024. Historical release notes for prior dates may not reflect all available features released earlier this year or their tenancy availability.

## July 2024
- **Behavior change:** dbt Cloud IDE attaches a `--limit 100` to queries by default to avoid slow and expensive queries from running in the development environment. Recently, dbt Core has changed how the `limit` is applied to ensure that `order by` clauses are consistently respected. Because of this, queries that already contain a limit clause might now cause errors in the IDE previews. An option to prevent the limit from being applied will become available to the dbt Cloud IDE later this year. Until this is released, dbt Labs strongly recommends removing the (duplicate) limit clause from your queries when previewing them.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- **Behavior change:** dbt Cloud IDE attaches a `--limit 100` to queries by default to avoid slow and expensive queries from running in the development environment. Recently, dbt Core has changed how the `limit` is applied to ensure that `order by` clauses are consistently respected. Because of this, queries that already contain a limit clause might now cause errors in the IDE previews. An option to prevent the limit from being applied will become available to the dbt Cloud IDE later this year. Until this is released, dbt Labs strongly recommends removing the (duplicate) limit clause from your queries when previewing them.
- **Behavior change:** dbt Cloud IDE attaches a `--limit 100` to preview queries by default to avoid slow and expensive queries from running in the development environment. Recently, dbt Core has changed how the `limit` is applied to ensure that `order by` clauses are consistently respected. Because of this, queries that already contain a limit clause might now cause errors in the IDE previews. An option to prevent the limit from being applied will become available to the dbt Cloud IDE later. Until this is released, dbt Labs recommends removing the (duplicate) limit clause from your queries when previewing them.

"later this year" sounds a long time away, but this should be pretty soon 🤞
I wouldn't say we have to strongly recommend it - if you don't it just won't work. Feels like we only have to be that wemphatic when you might be about to do something possible but ill-advised

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sgtm! thank you!

Copy link
Contributor

@mirnawong1 mirnawong1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small sugg that aren't blockers. lgmt!

@nghi-ly nghi-ly enabled auto-merge (squash) July 24, 2024 16:16
@nghi-ly nghi-ly merged commit 8da2c2b into current Jul 24, 2024
10 checks passed
@nghi-ly nghi-ly deleted the ly-docs-limit branch July 24, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: x-small This change will take under 3 hours to fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants