-
Notifications
You must be signed in to change notification settings - Fork 276
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
support order by limit optimization for non-sorted columns #18760
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #17367
What this PR does / why we need it:
support order by limit optimization for non-sorted columns
PR Type
enhancement
Description
handleMessgaeFromTopToScan
function that checked the sort order of a column, optimizing the order by limit for non-sorted columns.Changes walkthrough 📝
message.go
Optimize order by limit for non-sorted columns
pkg/sql/plan/message.go
node.