-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-29371][SQL] Fractional representation for interval string #26592
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 all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
62560cf
[SPARK-29371][SQL] Frational representation for interval string
yaooqinn 7ee83f5
use double directly
yaooqinn 4018278
benchmark
yaooqinn dd40ea0
jdk11 benchmark
yaooqinn 4dc8f02
round for microseconds for each unit
yaooqinn 393ad77
Merge branch 'master' into SPARK-29371-2
yaooqinn a5e2811
regen golden file
yaooqinn 5b4f518
add negative value test
yaooqinn 854b6f8
fix tests
yaooqinn 5af9a93
Merge branch 'master' into SPARK-29371-2
yaooqinn 5604b83
add . check back
yaooqinn 1684d3a
Merge branch 'master' into SPARK-29371-2
yaooqinn 4dffac9
regen golden file
yaooqinn 1ccfbbf
Merge branch 'master' into SPARK-29371-2
yaooqinn fe3e6ba
regen golden file
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
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,29 +1,23 @@ | ||
| Java HotSpot(TM) 64-Bit Server VM 11.0.5+10-LTS on Mac OS X 10.14.6 | ||
| Java HotSpot(TM) 64-Bit Server VM 11.0.5+10-LTS on Mac OS X 10.15.1 | ||
| 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 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 | ||
| prepare string w/ interval 644 698 84 1.6 644.1 1.0X | ||
| prepare string w/o interval 599 625 39 1.7 598.7 1.1X | ||
| 1 units w/ interval 441 448 9 2.3 441.0 1.5X | ||
| 1 units w/o interval 389 394 6 2.6 388.6 1.7X | ||
| 2 units w/ interval 559 575 22 1.8 559.1 1.2X | ||
| 2 units w/o interval 542 548 5 1.8 542.2 1.2X | ||
| 4 units w/ interval 1249 1263 15 0.8 1249.4 0.5X | ||
| 4 units w/o interval 1237 1252 15 0.8 1237.3 0.5X | ||
| 6 units w/ interval 1585 1596 12 0.6 1585.1 0.4X | ||
| 6 units w/o interval 1573 1585 17 0.6 1573.3 0.4X | ||
| 8 units w/ interval 2029 2032 4 0.5 2029.2 0.3X | ||
| 8 units w/o interval 2015 2026 18 0.5 2015.1 0.3X | ||
| 10 units w/ interval 2367 2370 2 0.4 2367.5 0.3X | ||
| 10 units w/o interval 2356 2357 2 0.4 2356.1 0.3X | ||
| 12 units w/ interval 2785 2821 43 0.4 2784.9 0.2X | ||
| 12 units w/o interval 2817 2856 37 0.4 2816.9 0.2X | ||
| 14 units w/ interval 3303 3319 28 0.3 3302.7 0.2X | ||
| 14 units w/o interval 3293 3310 21 0.3 3292.6 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.