-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expr: don't overcount byte result size of last batch
During finishing we were overcounting the bytes of the last batch if there were more rows in the count than the remaining limit. This would cause the max_query_result_size error to occur when it should not have. The first accounting also incorrectly did not account for projections, so a large ordering key could also cause incorrect max result size errors. Fix both by reverting #17968, but adding a check before the Vec allocation to avoid anything too large. Fixes #22724
- Loading branch information
Showing
2 changed files
with
44 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters