-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add Utf8->Binary type coercion for comparison #7080
Conversation
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.
Thanks @jonahgao ❤️
I took the liberty of merging up from main to get a fix for CI failures and pushed a small sql level test in sqllogictests
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.
Thank you @jonahgao
(LargeBinary, LargeBinary) | ||
| (Binary, LargeBinary) | ||
| (LargeBinary, Binary) | ||
| (Utf8, LargeBinary) | ||
| (LargeBinary, Utf8) | ||
| (LargeUtf8, LargeBinary) | ||
| (LargeBinary, LargeUtf8) => Some(LargeBinary), |
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.
we can use
(LargeBinary, Utf8 | LargeUtf8 | Binary | LargeBinary) | (Utf8 | LargeUtf8 | Binary | LargeBinary, LargeBinary)
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.
Updated. Thank you @jackwener ❤️
Which issue does this PR close?
Partial fix for #7039.
Closes #7039
Rationale for this change
The following casts should be safe:
What changes are included in this PR?
Are these changes tested?
Yes
Are there any user-facing changes?
No