-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Kernel] Change string comparing from UTF16 to UTF8 #3611
Changes from 9 commits
4ea7116
6d38dd2
e454041
65b475b
d672f55
835cc7c
7af5d0e
482b2ed
1a4d360
459898c
53f9ddb
5021a62
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -607,6 +607,44 @@ class DefaultExpressionEvaluatorSuite extends AnyFunSuite with ExpressionSuiteBa | |||||||||||||||
), | ||||||||||||||||
(ofDate(-12123), ofDate(123123), ofDate(-12123), ofNull(DateType.DATE)), | ||||||||||||||||
(ofString("apples"), ofString("oranges"), ofString("apples"), ofNull(StringType.STRING)), | ||||||||||||||||
( | ||||||||||||||||
ofString("apples"), | ||||||||||||||||
ofString("oranges"), | ||||||||||||||||
ofString("apples"), | ||||||||||||||||
ofNull(StringType.STRING) | ||||||||||||||||
), | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same test case as the one above? |
||||||||||||||||
( | ||||||||||||||||
ofString("abc"), | ||||||||||||||||
ofString("abcd"), | ||||||||||||||||
ofString("abc"), | ||||||||||||||||
ofNull(StringType.STRING) | ||||||||||||||||
), | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same for other test cases. |
||||||||||||||||
( | ||||||||||||||||
ofString("abc"), | ||||||||||||||||
ofString("abd"), | ||||||||||||||||
ofString("abc"), | ||||||||||||||||
ofNull(StringType.STRING) | ||||||||||||||||
), | ||||||||||||||||
( | ||||||||||||||||
// scalastyle:off nonascii | ||||||||||||||||
ofString("A"), | ||||||||||||||||
ofString("\u0100"), | ||||||||||||||||
ofString("A"), | ||||||||||||||||
ofNull(StringType.STRING) | ||||||||||||||||
), | ||||||||||||||||
( | ||||||||||||||||
ofString("\00BB"), | ||||||||||||||||
ofString("\u00EE"), | ||||||||||||||||
ofString("\00BB"), | ||||||||||||||||
ofNull(StringType.STRING) | ||||||||||||||||
), | ||||||||||||||||
( | ||||||||||||||||
ofString("\uFFFD"), | ||||||||||||||||
ofString("\uD83C\uDF3C"), | ||||||||||||||||
ofString("\uFFFD"), | ||||||||||||||||
ofNull(StringType.STRING) | ||||||||||||||||
// scalastyle:on nonascii | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are there more tests we could copy for Spark or Delta-Spark around other surrogate pairs and unsigned char comparison? |
||||||||||||||||
), | ||||||||||||||||
( | ||||||||||||||||
ofBinary("apples".getBytes()), | ||||||||||||||||
ofBinary("oranges".getBytes()), | ||||||||||||||||
|
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.
unrelated changes in this file?