-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
planner, executor: support point get as a option of DataSource
#14775
Conversation
planner/core/find_best_task.go
Outdated
rTsk.p = sel | ||
} | ||
} else { | ||
if !candidate.path.Index.Unique || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we check this before allRangesIsPoint
, so we don't need to do the wasted computation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
planner/core/find_best_task.go
Outdated
prop.TaskTp == property.CopSingleReadTaskType && !candidate.isSingleScan { | ||
return invalidTask, nil | ||
} | ||
if candidate.path.StoreType == kv.TiFlash { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do all the checks before allRangeIsPoint
? then this function doesn't need to return error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
@lzmhhh123 merge failed. |
/run-all-test |
/run-all-tests |
/merge |
Your auto merge job has been accepted, waiting for 15114 |
/run-all-tests |
What problem does this PR solve?
As the title says.
fix #14044
Check List
Tests
Code changes