-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-29822][SQL] Fix cast error when there are white spaces between signs and values #26449
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
Closed
Closed
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b1b2f7c
[SPARK-29605][SQL][FOLLOWUP] Fix cast error when there are spaces bet…
yaooqinn 71acf0a
Merge remote-tracking branch 'origin/master' into SPARK-29605
yaooqinn 8f0dba0
benchmark and unit tests
yaooqinn 925e8e7
benchmark with jdk 1.8.0_231-b11
yaooqinn 65e2a1c
benchmark with jdk-11.0.5
yaooqinn 200fd5d
Revert "benchmark with jdk-11.0.5"
yaooqinn 8851f35
fix jdk11 result
yaooqinn 48d168d
Merge branch 'master' into SPARK-29605
yaooqinn 1e8272c
regen golden file
yaooqinn cb8aa6b
add TRIM_UNIT
yaooqinn 0a301a1
naming
yaooqinn 83b9ae3
naming again
yaooqinn 34bf719
naming again
yaooqinn cb83761
tests
yaooqinn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,29 @@ | ||
| OpenJDK 64-Bit Server VM 11.0.2+9 on Mac OS X 10.15.1 | ||
| Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz | ||
| Java HotSpot(TM) 64-Bit Server VM 11.0.5+10-LTS on Mac OS X 10.14.6 | ||
| Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz | ||
| cast strings to intervals: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative | ||
| ------------------------------------------------------------------------------------------------------------------------ | ||
| prepare string w/ interval 442 472 41 2.3 442.4 1.0X | ||
| prepare string w/o interval 420 423 6 2.4 419.6 1.1X | ||
| 1 units w/ interval 350 359 9 2.9 349.8 1.3X | ||
| 1 units w/o interval 316 317 1 3.2 316.4 1.4X | ||
| 2 units w/ interval 457 459 2 2.2 457.0 1.0X | ||
| 2 units w/o interval 432 435 3 2.3 432.2 1.0X | ||
| 3 units w/ interval 610 613 3 1.6 609.8 0.7X | ||
| 3 units w/o interval 581 583 2 1.7 580.5 0.8X | ||
| 4 units w/ interval 720 724 4 1.4 720.4 0.6X | ||
| 4 units w/o interval 699 704 8 1.4 699.4 0.6X | ||
| 5 units w/ interval 850 850 0 1.2 849.9 0.5X | ||
| 5 units w/o interval 829 832 5 1.2 828.7 0.5X | ||
| 6 units w/ interval 927 932 4 1.1 927.1 0.5X | ||
| 6 units w/o interval 891 892 1 1.1 890.5 0.5X | ||
| 7 units w/ interval 1033 1040 8 1.0 1033.2 0.4X | ||
| 7 units w/o interval 1020 1024 5 1.0 1020.2 0.4X | ||
| 8 units w/ interval 1168 1169 2 0.9 1168.0 0.4X | ||
| 8 units w/o interval 1155 1157 2 0.9 1154.5 0.4X | ||
| 9 units w/ interval 1326 1328 3 0.8 1326.1 0.3X | ||
| 9 units w/o interval 1372 1381 14 0.7 1372.5 0.3X | ||
| prepare string w/ interval 574 610 45 1.7 573.9 1.0X | ||
| prepare string w/o interval 518 538 27 1.9 517.7 1.1X | ||
| 1 units w/ interval 425 439 16 2.4 425.3 1.3X | ||
| 1 units w/o interval 385 393 10 2.6 385.2 1.5X | ||
| 2 units w/ interval 553 561 11 1.8 553.1 1.0X | ||
| 2 units w/o interval 531 543 11 1.9 531.0 1.1X | ||
| 3 units w/ interval 1134 1159 32 0.9 1134.0 0.5X | ||
| 3 units w/o interval 1121 1126 6 0.9 1121.3 0.5X | ||
| 4 units w/ interval 1226 1250 21 0.8 1226.1 0.5X | ||
| 4 units w/o interval 1227 1239 11 0.8 1227.1 0.5X | ||
| 5 units w/ interval 1375 1447 93 0.7 1374.7 0.4X | ||
| 5 units w/o interval 1335 1346 19 0.7 1335.1 0.4X | ||
| 6 units w/ interval 1530 1556 24 0.7 1529.5 0.4X | ||
| 6 units w/o interval 1481 1492 17 0.7 1480.7 0.4X | ||
| 7 units w/ interval 1730 1745 14 0.6 1729.9 0.3X | ||
| 7 units w/o interval 1788 1859 112 0.6 1788.1 0.3X | ||
| 8 units w/ interval 1952 2087 117 0.5 1951.7 0.3X | ||
| 8 units w/o interval 2083 2207 209 0.5 2082.5 0.3X | ||
| 9 units w/ interval 2228 2291 60 0.4 2227.5 0.3X | ||
| 9 units w/o interval 2130 2184 75 0.5 2130.1 0.3X | ||
| 10 units w/ interval 2414 2502 81 0.4 2413.8 0.2X | ||
| 10 units w/o interval 2463 2488 35 0.4 2463.1 0.2X | ||
| 11 units w/ interval 2717 2755 42 0.4 2716.8 0.2X | ||
| 11 units w/o interval 2578 2661 77 0.4 2577.7 0.2X | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
how about
TRIM_BEFORE_SIGNto be consistent?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.
cool. good naming