-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: allow comparisons of tuples #6217
Conversation
This is not yet used by index selection, is it? (and in that case I don't think we can say it fixes the bug) Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. sql/parser/eval.go, line 744 [r1] (raw file): Comments from Reviewable |
Changed to "See". Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. sql/parser/eval.go, line 744 [r1] (raw file): Comments from Reviewable |
Updated with tests for varying sizes and types. We now have an unfortunate panic/recover because Datum.Compare's function signature returns just an Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. Comments from Reviewable |
LGTM, but the issue should stay open until we generate constraints/spans in index selection. Otherwise you could argue it's worse than before, when the user was forced to rewrite the expression but when they did the query didn't scan the entire table.. Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. sql/parser/eval.go, line 770 [r3] (raw file): sql/parser/eval.go, line 773 [r3] (raw file): Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. sql/parser/eval.go, line 770 [r3] (raw file): sql/parser/eval.go, line 773 [r3] (raw file): Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. sql/parser/eval.go, line 770 [r3] (raw file): sql/parser/eval.go, line 773 [r3] (raw file): Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. sql/parser/eval.go, line 773 [r3] (raw file): Comments from Reviewable |
Review status: 0 of 3 files reviewed at latest revision, 3 unresolved discussions, some commit checks pending. sql/parser/eval.go, line 770 [r3] (raw file): sql/parser/eval.go, line 773 [r3] (raw file): Comments from Reviewable |
Review status: 0 of 3 files reviewed at latest revision, 3 unresolved discussions, some commit checks pending. sql/testdata/tuple, line 85 [r4] (raw file): sql/testdata/tuple, line 88 [r4] (raw file): Comments from Reviewable |
Fixes #6206
This change is