-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Collations Integration Ordering #9155
Merged
Merged
Conversation
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
systay
reviewed
Nov 8, 2021
The test failures in the unit tests are not flukes. Looks like you need to tweak the code -- a good starting point would be the slice access that is causing a panic. |
king-11
force-pushed
the
compare
branch
2 times, most recently
from
November 11, 2021 03:47
48b820f
to
5d58b0c
Compare
@vmg the issue is resolved i was trying to access KeyCol instead of actual index |
vmg
added
Component: Query Serving
release notes none
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
labels
Nov 11, 2021
frouioui
reviewed
Nov 12, 2021
king-11
force-pushed
the
compare
branch
2 times, most recently
from
November 12, 2021 08:34
27bf673
to
dd57d71
Compare
Signed-off-by: Lakshya Singh <[email protected]>
Signed-off-by: Lakshya Singh <[email protected]>
Signed-off-by: Lakshya Singh <[email protected]>
cases for asc, desc, error and unsupported Signed-off-by: Lakshya Singh <[email protected]>
no way to get collation from aggregates use group by only with if check Signed-off-by: Lakshya Singh <[email protected]>
frouioui
approved these changes
Nov 12, 2021
Signed-off-by: Lakshya Singh <[email protected]>
testing order by with aggregation using plan tests Co-authored-by: Florent Poinsard <[email protected]> Co-authored-by: Lakshya Singh <[email protected]> Signed-off-by: Lakshya Singh <[email protected]>
Signed-off-by: Lakshya Singh <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component: Query Serving
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Engine Update
This PR adds collation support to the
engine
module specifically focused on makingcomparer
struct collation aware by including collation ID in it which can then be passed down to theNullSafeCompare
responsible for actually comparing values.vitess/go/vt/vtgate/engine/comparer.go
Line 26 in f085f12
To be able to pass down collation ID into the
comparer
struct we need to contain it further up the module level i.e. inOrderByParams
.vitess/go/vt/vtgate/engine/route.go
Line 128 in f085f12
Plan Builder Updates
planBuilder
it becomes trivial to extract collation ID in most cases.Memory Sort on Aggregation
The plan builder tests were updated so that testing can be done for
createMemorySortPlanOnAggregation
. For that, theOrderByParams.String()
was updated to include the collation name withCOLLATE
keyword. This changes thedescription
ofroute
for which tests were updated this also allows us to test forcreateMemorySortPlanOnAggregation
using the plan builder tests.v3
We don't have the semantic table for the v3 planner code and we intend to only add collations support to Gen4 only, after discussing with @systay @frouioui. Hence the TODOs are left in
ordering.go
andmemory_sort.go
.Tests Added
Related Issue(s)
Checklist
Deployment Notes