File tree Expand file tree Collapse file tree
spark/src/test/scala/org/apache/spark/sql/benchmark Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ case class CastBooleanConfig(
2424 query : String ,
2525 extraCometConfigs : Map [String , String ] = Map .empty)
2626
27- // spotless:off
2827/**
2928 * Benchmark to measure performance of Comet cast operations involving Boolean type. To run this
3029 * benchmark:
31- * `SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastBooleanBenchmark`
30+ * {{{
31+ * SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastBooleanBenchmark
32+ * }}}
3233 * Results will be written to "spark/benchmarks/CometCastBooleanBenchmark-**results.txt".
3334 */
34- // spotless:on
3535object CometCastBooleanBenchmark extends CometBenchmarkBase {
3636
3737 private val castFunctions = Seq (" CAST" , " TRY_CAST" )
Original file line number Diff line number Diff line change @@ -24,14 +24,13 @@ case class CastNumericToNumericConfig(
2424 query : String ,
2525 extraCometConfigs : Map [String , String ] = Map .empty)
2626
27- // spotless:off
2827/**
29- * Benchmark to measure performance of Comet cast between numeric types. To run this
30- * benchmark:
31- * `SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastNumericToNumericBenchmark`
28+ * Benchmark to measure performance of Comet cast between numeric types. To run this benchmark:
29+ * {{{
30+ * SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastNumericToNumericBenchmark
31+ * }}}
3232 * Results will be written to "spark/benchmarks/CometCastNumericToNumericBenchmark-**results.txt".
3333 */
34- // spotless:on
3534object CometCastNumericToNumericBenchmark extends CometBenchmarkBase {
3635
3736 private val castFunctions = Seq (" CAST" , " TRY_CAST" )
Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ case class CastNumericToStringConfig(
2424 query : String ,
2525 extraCometConfigs : Map [String , String ] = Map .empty)
2626
27- // spotless:off
2827/**
2928 * Benchmark to measure performance of Comet cast from numeric types to String. To run this
3029 * benchmark:
31- * `SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastNumericToStringBenchmark`
30+ * {{{
31+ * SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastNumericToStringBenchmark
32+ * }}}
3233 * Results will be written to "spark/benchmarks/CometCastNumericToStringBenchmark-**results.txt".
3334 */
34- // spotless:on
3535object CometCastNumericToStringBenchmark extends CometBenchmarkBase {
3636
3737 private val castFunctions = Seq (" CAST" , " TRY_CAST" )
Original file line number Diff line number Diff line change @@ -24,14 +24,15 @@ case class CastNumericToTemporalConfig(
2424 query : String ,
2525 extraCometConfigs : Map [String , String ] = Map .empty)
2626
27- // spotless:off
2827/**
2928 * Benchmark to measure performance of Comet cast from numeric types to temporal types. To run
3029 * this benchmark:
31- * `SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastNumericToTemporalBenchmark`
32- * Results will be written to "spark/benchmarks/CometCastNumericToTemporalBenchmark-**results.txt".
30+ * {{{
31+ * SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastNumericToTemporalBenchmark
32+ * }}}
33+ * Results will be written to
34+ * "spark/benchmarks/CometCastNumericToTemporalBenchmark-**results.txt".
3335 */
34- // spotless:on
3536object CometCastNumericToTemporalBenchmark extends CometBenchmarkBase {
3637
3738 private val castFunctions = Seq (" CAST" , " TRY_CAST" )
Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ case class CastStringToTemporalConfig(
2424 query : String ,
2525 extraCometConfigs : Map [String , String ] = Map .empty)
2626
27- // spotless:off
2827/**
2928 * Benchmark to measure performance of Comet cast from String to temporal types. To run this
3029 * benchmark:
31- * `SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastStringToTemporalBenchmark`
30+ * {{{
31+ * SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastStringToTemporalBenchmark
32+ * }}}
3233 * Results will be written to "spark/benchmarks/CometCastStringToTemporalBenchmark-**results.txt".
3334 */
34- // spotless:on
3535object CometCastStringToTemporalBenchmark extends CometBenchmarkBase {
3636
3737 // Configuration for String to temporal cast benchmarks
Original file line number Diff line number Diff line change @@ -24,14 +24,15 @@ case class CastTemporalToNumericConfig(
2424 query : String ,
2525 extraCometConfigs : Map [String , String ] = Map .empty)
2626
27- // spotless:off
2827/**
2928 * Benchmark to measure performance of Comet cast from temporal types to numeric types. To run
3029 * this benchmark:
31- * `SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastTemporalToNumericBenchmark`
32- * Results will be written to "spark/benchmarks/CometCastTemporalToNumericBenchmark-**results.txt".
30+ * {{{
31+ * SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastTemporalToNumericBenchmark
32+ * }}}
33+ * Results will be written to
34+ * "spark/benchmarks/CometCastTemporalToNumericBenchmark-**results.txt".
3335 */
34- // spotless:on
3536object CometCastTemporalToNumericBenchmark extends CometBenchmarkBase {
3637
3738 private val castFunctions = Seq (" CAST" , " TRY_CAST" )
Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ case class CastTemporalToStringConfig(
2424 query : String ,
2525 extraCometConfigs : Map [String , String ] = Map .empty)
2626
27- // spotless:off
2827/**
2928 * Benchmark to measure performance of Comet cast from temporal types to String. To run this
3029 * benchmark:
31- * `SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastTemporalToStringBenchmark`
30+ * {{{
31+ * SPARK_GENERATE_BENCHMARK_FILES=1 make benchmark-org.apache.spark.sql.benchmark.CometCastTemporalToStringBenchmark
32+ * }}}
3233 * Results will be written to "spark/benchmarks/CometCastTemporalToStringBenchmark-**results.txt".
3334 */
34- // spotless:on
3535object CometCastTemporalToStringBenchmark extends CometBenchmarkBase {
3636
3737 private val castFunctions = Seq (" CAST" , " TRY_CAST" )
You can’t perform that action at this time.
0 commit comments