Skip to content

Commit a3d45af

Browse files
committed
fix docs
1 parent 93ab38f commit a3d45af

7 files changed

Lines changed: 26 additions & 25 deletions

spark/src/test/scala/org/apache/spark/sql/benchmark/CometCastBooleanBenchmark.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
3535
object CometCastBooleanBenchmark extends CometBenchmarkBase {
3636

3737
private val castFunctions = Seq("CAST", "TRY_CAST")

spark/src/test/scala/org/apache/spark/sql/benchmark/CometCastNumericToNumericBenchmark.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
3534
object CometCastNumericToNumericBenchmark extends CometBenchmarkBase {
3635

3736
private val castFunctions = Seq("CAST", "TRY_CAST")

spark/src/test/scala/org/apache/spark/sql/benchmark/CometCastNumericToStringBenchmark.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
3535
object CometCastNumericToStringBenchmark extends CometBenchmarkBase {
3636

3737
private val castFunctions = Seq("CAST", "TRY_CAST")

spark/src/test/scala/org/apache/spark/sql/benchmark/CometCastNumericToTemporalBenchmark.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
3536
object CometCastNumericToTemporalBenchmark extends CometBenchmarkBase {
3637

3738
private val castFunctions = Seq("CAST", "TRY_CAST")

spark/src/test/scala/org/apache/spark/sql/benchmark/CometCastStringToTemporalBenchmark.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
3535
object CometCastStringToTemporalBenchmark extends CometBenchmarkBase {
3636

3737
// Configuration for String to temporal cast benchmarks

spark/src/test/scala/org/apache/spark/sql/benchmark/CometCastTemporalToNumericBenchmark.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
3536
object CometCastTemporalToNumericBenchmark extends CometBenchmarkBase {
3637

3738
private val castFunctions = Seq("CAST", "TRY_CAST")

spark/src/test/scala/org/apache/spark/sql/benchmark/CometCastTemporalToStringBenchmark.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
3535
object CometCastTemporalToStringBenchmark extends CometBenchmarkBase {
3636

3737
private val castFunctions = Seq("CAST", "TRY_CAST")

0 commit comments

Comments
 (0)