Skip to content
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

Ordering by ambiguous column crashed vtgate #17104

Closed
systay opened this issue Oct 29, 2024 · 1 comment
Closed

Ordering by ambiguous column crashed vtgate #17104

systay opened this issue Oct 29, 2024 · 1 comment

Comments

@systay
Copy link
Collaborator

systay commented Oct 29, 2024

On the latest Vitess 19.0 release, a simple query like:

select foobar from user u join music m on u.id = m.user_id order by foobar

will fail during semantic analysis with a panic:

Uncaught panic:
runtime error: index out of range [-1]
...
vitess.io/vitess/go/vt/vtgate/semantics/early_rewriter.go:671
...

The tables are not authoritative in the vschema, and the two sides of the join can be merged thanks to sharding keys.
The issue is no longer present in main

@systay
Copy link
Collaborator Author

systay commented Oct 30, 2024

Fixed by #17103

@systay systay closed this as completed Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant