Github user xuanyuanking commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21177#discussion_r184724132
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/TPCDSQueryBenchmark.scala
 ---
    @@ -87,10 +90,20 @@ object TPCDSQueryBenchmark extends Logging {
         }
       }
     
    +  def filterQueries(
    +      origQueries: Seq[String],
    +      args: TPCDSQueryBenchmarkArguments): Seq[String] = {
    +    if (args.queryFilter.nonEmpty) {
    +      origQueries.filter { case queryName => 
args.queryFilter.contains(queryName) }
    --- End diff --
    
    ```
    origQueries.filter(args.queryFilter.contains)
    ```
    maybe better? :)


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to