-
Notifications
You must be signed in to change notification settings - Fork 603
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
bug: mysql order doesn't respec ASCII values #9439
Comments
This is almost certainly a MySQL-ism and not something we can control. I vaguely recall some nonsense around collation being case-INsensitive. |
Ok, well, it IS as MySQL-ism, but perhaps we can control it :) https://dev.mysql.com/doc/refman/8.4/en/sorting-rows.html Adding in the text of the above for searchability: On character type columns, sorting—like all other comparison operations—is normally performed in a case-insensitive fashion. This means that the order is undefined for columns that are identical except for their case. You can force a case-sensitive sort for a column by using BINARY like so: |
Based on this #9385 (comment). Should we close this one? or Does mysql still deserves the chance to try to sort this out? (pun intended) |
Our test suite wasn't catching this because we don't have mixed-case strings in our test data. |
Closing this out as it is the defined behavior in MySQL -- to get ASCII sorting, first cast to binary. |
What happened?
In mysql when ordering a column that has uppercase and lowercase strings, the order doesn't follow ASCII orders.
Minimal reproducer:
just up mysql
What version of ibis are you using?
main
What backend(s) are you using, if any?
mysql
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: