Repository: spark
Updated Branches:
  refs/heads/master 5d71f3db8 -> ebff519c5


[SPARK-20471] Remove AggregateBenchmark testsuite warning: Two level hashmap is 
disabled but vectorized hashmap is enabled

What changes were proposed in this pull request?

remove  AggregateBenchmark testsuite warning:
such as '14:26:33.220 WARN 
org.apache.spark.sql.execution.aggregate.HashAggregateExec: Two level hashmap 
is disabled but vectorized hashmap is enabled.'

How was this patch tested?
unit tests: AggregateBenchmark
Modify the 'ignore function for 'test funtion

Author: caoxuewen <cao.xue...@zte.com.cn>

Closes #17771 from heary-cao/AggregateBenchmark.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ebff519c
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ebff519c
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ebff519c

Branch: refs/heads/master
Commit: ebff519c5ead31536e17a5b16cc47c2bf380d55e
Parents: 5d71f3d
Author: caoxuewen <cao.xue...@zte.com.cn>
Authored: Fri Apr 28 14:47:17 2017 -0700
Committer: gatorsmile <gatorsm...@gmail.com>
Committed: Fri Apr 28 14:47:17 2017 -0700

----------------------------------------------------------------------
 .../spark/sql/execution/benchmark/AggregateBenchmark.scala      | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/ebff519c/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/AggregateBenchmark.scala
----------------------------------------------------------------------
diff --git 
a/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/AggregateBenchmark.scala
 
b/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/AggregateBenchmark.scala
index 8a2993b..8a798fb 100644
--- 
a/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/AggregateBenchmark.scala
+++ 
b/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/AggregateBenchmark.scala
@@ -107,6 +107,7 @@ class AggregateBenchmark extends BenchmarkBase {
     benchmark.addCase(s"codegen = T hashmap = F", numIters = 3) { iter =>
       sparkSession.conf.set("spark.sql.codegen.wholeStage", "true")
       sparkSession.conf.set("spark.sql.codegen.aggregate.map.twolevel.enable", 
"false")
+      
sparkSession.conf.set("spark.sql.codegen.aggregate.map.vectorized.enable", 
"false")
       f()
     }
 
@@ -148,6 +149,7 @@ class AggregateBenchmark extends BenchmarkBase {
     benchmark.addCase(s"codegen = T hashmap = F", numIters = 3) { iter =>
       sparkSession.conf.set("spark.sql.codegen.wholeStage", value = true)
       sparkSession.conf.set("spark.sql.codegen.aggregate.map.twolevel.enable", 
"false")
+      
sparkSession.conf.set("spark.sql.codegen.aggregate.map.vectorized.enable", 
"false")
       f()
     }
 
@@ -187,6 +189,7 @@ class AggregateBenchmark extends BenchmarkBase {
     benchmark.addCase(s"codegen = T hashmap = F", numIters = 3) { iter =>
       sparkSession.conf.set("spark.sql.codegen.wholeStage", "true")
       sparkSession.conf.set("spark.sql.codegen.aggregate.map.twolevel.enable", 
"false")
+      
sparkSession.conf.set("spark.sql.codegen.aggregate.map.vectorized.enable", 
"false")
       f()
     }
 
@@ -225,6 +228,7 @@ class AggregateBenchmark extends BenchmarkBase {
     benchmark.addCase(s"codegen = T hashmap = F") { iter =>
       sparkSession.conf.set("spark.sql.codegen.wholeStage", "true")
       sparkSession.conf.set("spark.sql.codegen.aggregate.map.twolevel.enable", 
"false")
+      
sparkSession.conf.set("spark.sql.codegen.aggregate.map.vectorized.enable", 
"false")
       f()
     }
 
@@ -273,6 +277,7 @@ class AggregateBenchmark extends BenchmarkBase {
     benchmark.addCase(s"codegen = T hashmap = F") { iter =>
       sparkSession.conf.set("spark.sql.codegen.wholeStage", "true")
       sparkSession.conf.set("spark.sql.codegen.aggregate.map.twolevel.enable", 
"false")
+      
sparkSession.conf.set("spark.sql.codegen.aggregate.map.vectorized.enable", 
"false")
       f()
     }
 


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

Reply via email to