From 9b67a0230fef108d03a74331ccd9f8c0bee7a20c Mon Sep 17 00:00:00 2001 From: zwangsheng <2213335496@qq.com> Date: Tue, 20 Sep 2022 10:41:17 +0800 Subject: [PATCH] [KYUUBI #3522] [BUG][TPCDS] Fix benchmark --results-dir ### _Why are the changes needed?_ `r` or `results-dir` should point to results-dir ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #3522 from zwangsheng/bugfix/bechmark_fix_result_dir. Closes #3522 39361cfc [zwangsheng] fix Authored-by: zwangsheng <2213335496@qq.com> Signed-off-by: Cheng Pan --- .../scala/org/apache/kyuubi/tpcds/benchmark/RunBenchmark.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/kyuubi-tpcds/src/main/scala/org/apache/kyuubi/tpcds/benchmark/RunBenchmark.scala b/dev/kyuubi-tpcds/src/main/scala/org/apache/kyuubi/tpcds/benchmark/RunBenchmark.scala index 673c9c589..93f14e57e 100644 --- a/dev/kyuubi-tpcds/src/main/scala/org/apache/kyuubi/tpcds/benchmark/RunBenchmark.scala +++ b/dev/kyuubi-tpcds/src/main/scala/org/apache/kyuubi/tpcds/benchmark/RunBenchmark.scala @@ -63,7 +63,7 @@ object RunBenchmark { .action((x, c) => c.copy(iterations = x)) .text("the number of iterations to run") opt[String]('r', "results-dir") - .action((x, c) => c.copy(filter = Some(x))) + .action((x, c) => c.copy(resultsDir = Some(x))) .text("dir to store benchmark results, e.g. hdfs://hdfs-nn:9870/pref") help("help") .text("prints this usage text")