Skip to content

Commit

Permalink
Update dev/kyuubi-tpcds/src/main/scala/org/apache/kyuubi/tpcds/benchm…
Browse files Browse the repository at this point in the history
…ark/RunBenchmark.scala

Co-authored-by: Cheng Pan <pan3793@gmail.com>
  • Loading branch information
zwangsheng and pan3793 committed Sep 27, 2022
1 parent 780410a commit 11a5b5c
Showing 1 changed file with 3 additions and 8 deletions.
Expand Up @@ -67,14 +67,9 @@ object RunBenchmark {
.action((x, c) => c.copy(resultsDir = x))
.text("dir to store benchmark results, e.g. hdfs://hdfs-nn:9870/pref")
opt[String]('q', "queries")
.action((x, c) =>
c.copy(queries = {
if (x.nonEmpty || !x.isBlank) {
x.split(",").filter(_.nonEmpty).toSet
} else {
Set.empty[String]
}
}))
.action { case (x, c) =>
c.copy(queries = x.split(",").map(_.trim).filter(_.nonEmpty).toSet)
}
.text("name of the queries to run, use , split multiple name")
help("help")
.text("prints this usage text")
Expand Down

0 comments on commit 11a5b5c

Please sign in to comment.