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

Issue 3239: Fix dm_exec_query_profiles arithmetic overflow error in check 45 #3241

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

SQLLambert
Copy link
Contributor

Check 45 looking for inaccurate query estimates was checking if the actual row count (row_count in dm_exec_query_profiles) was greater than estimate_row_count*10000. This was generating arithmetic overflow errors on queries containing estimates close to the bigint limit. Change the calculation to compare the row count/10000 to the estimate instead - same result but no overflow.

Copy link
Member

@BrentOzar BrentOzar left a comment

Choose a reason for hiding this comment

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

Thanks for the pull request! Looks good, merging into the dev branch, will be in the next release with credit to you in the release notes.

@BrentOzar BrentOzar added this to the 2023-05 Release milestone Mar 6, 2023
@BrentOzar BrentOzar merged commit 31c6ede into BrentOzarULTD:dev Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants