Repository: spark
Updated Branches:
  refs/heads/branch-2.1 62969e9be -> 14b6a9d34


[SPARK-20735][SQL][TEST] Enable cross join in TPCDSQueryBenchmark

## What changes were proposed in this pull request?

Since [SPARK-17298](https://issues.apache.org/jira/browse/SPARK-17298), some 
queries (q28, q61, q77, q88, q90) in the test suites fail with a message "_Use 
the CROSS JOIN syntax to allow cartesian products between these relations_".

This benchmark is used as a reference model for Spark TPC-DS, so this PR aims 
to enable the correct configuration in `TPCDSQueryBenchmark.scala`.

## How was this patch tested?

Manual. (Run TPCDSQueryBenchmark)

Author: Dongjoon Hyun <dongj...@apache.org>

Closes #17977 from dongjoon-hyun/SPARK-20735.

(cherry picked from commit bbd163d589e7503c5cb150d934e7565b18a908f2)
Signed-off-by: Xiao Li <gatorsm...@gmail.com>


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

Branch: refs/heads/branch-2.1
Commit: 14b6a9d340a75e12ae49b3e8e885997aaffff79c
Parents: 62969e9
Author: Dongjoon Hyun <dongj...@apache.org>
Authored: Mon May 15 11:24:30 2017 -0700
Committer: Xiao Li <gatorsm...@gmail.com>
Committed: Mon May 15 11:25:03 2017 -0700

----------------------------------------------------------------------
 .../apache/spark/sql/execution/benchmark/TPCDSQueryBenchmark.scala  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/14b6a9d3/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/TPCDSQueryBenchmark.scala
----------------------------------------------------------------------
diff --git 
a/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/TPCDSQueryBenchmark.scala
 
b/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/TPCDSQueryBenchmark.scala
index 3988d97..a23c875 100644
--- 
a/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/TPCDSQueryBenchmark.scala
+++ 
b/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/TPCDSQueryBenchmark.scala
@@ -43,6 +43,7 @@ object TPCDSQueryBenchmark {
       .set("spark.driver.memory", "3g")
       .set("spark.executor.memory", "3g")
       .set("spark.sql.autoBroadcastJoinThreshold", (20 * 1024 * 1024).toString)
+      .set("spark.sql.crossJoin.enabled", "true")
 
   val spark = SparkSession.builder.config(conf).getOrCreate()
 


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

Reply via email to