-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-50216][SQL][TESTS] Update CollationBenchmark to invoke collationNameToId outside of cases
#48804
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
[SPARK-50216][SQL][TESTS] Update CollationBenchmark to invoke collationNameToId outside of cases
#48804
Changes from 4 commits
f582fe9
9cbad8a
44d56fb
47693a9
2951355
95b259e
882f980
ef5b065
d67fd93
daf0b8d
2139918
5680954
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 |
|---|---|---|
|
|
@@ -113,13 +113,13 @@ abstract class CollationBenchmarkBase extends BenchmarkBase { | |
| warmupTime = 10.seconds, | ||
| output = output) | ||
| collationTypes.foreach { collationType => { | ||
| val collation = CollationFactory.fetchCollation(collationType) | ||
| val collationId = CollationFactory.collationNameToId(collationType) | ||
|
Member
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. Can we avoid touching the benchmark in the PR, @stevomitric ? If we need this, we can proceed separately this
Contributor
Author
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. The regression was partially due to benchmarks as well. The So i think this is the right PR for it, since it was the leading contributor to the numbers seen in the results. |
||
| benchmark.addCase(s"$collationType") { _ => | ||
| sublistStrings.foreach { s1 => | ||
| utf8Strings.foreach { s => | ||
| (0 to 3).foreach { _ => | ||
| CollationSupport.Contains.exec( | ||
| s, s1, CollationFactory.collationNameToId(collation.collationName) | ||
| s, s1, collationId | ||
| ) | ||
| } | ||
| } | ||
|
|
@@ -141,13 +141,13 @@ abstract class CollationBenchmarkBase extends BenchmarkBase { | |
| warmupTime = 10.seconds, | ||
| output = output) | ||
| collationTypes.foreach { collationType => { | ||
| val collation = CollationFactory.fetchCollation(collationType) | ||
| val collationId = CollationFactory.collationNameToId(collationType) | ||
| benchmark.addCase(s"$collationType") { _ => | ||
| sublistStrings.foreach { s1 => | ||
| utf8Strings.foreach { s => | ||
| (0 to 3).foreach { _ => | ||
| CollationSupport.StartsWith.exec( | ||
| s, s1, CollationFactory.collationNameToId(collation.collationName) | ||
| s, s1, collationId | ||
| ) | ||
| } | ||
| } | ||
|
|
@@ -169,13 +169,13 @@ abstract class CollationBenchmarkBase extends BenchmarkBase { | |
| warmupTime = 10.seconds, | ||
| output = output) | ||
| collationTypes.foreach { collationType => { | ||
| val collation = CollationFactory.fetchCollation(collationType) | ||
| val collationId = CollationFactory.collationNameToId(collationType) | ||
| benchmark.addCase(s"$collationType") { _ => | ||
| sublistStrings.foreach { s1 => | ||
| utf8Strings.foreach { s => | ||
| (0 to 3).foreach { _ => | ||
| CollationSupport.EndsWith.exec( | ||
| s, s1, CollationFactory.collationNameToId(collation.collationName) | ||
| s, s1, collationId | ||
| ) | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.