-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liuneng1994
committed
May 28, 2024
1 parent
e6427b6
commit ee3ecb5
Showing
13 changed files
with
421 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletions
128
...st/scala/org/apache/gluten/execution/GlutenClickHouseColumnarMemorySortShuffleSuite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.apache.gluten.execution | ||
|
||
import org.apache.spark.SparkConf | ||
import org.apache.spark.sql.execution.adaptive.AdaptiveSparkPlanHelper | ||
|
||
class GlutenClickHouseColumnarMemorySortShuffleSuite | ||
extends GlutenClickHouseTPCHAbstractSuite | ||
with AdaptiveSparkPlanHelper { | ||
|
||
override protected val tablesPath: String = basePath + "/tpch-data-ch" | ||
override protected val tpchQueries: String = rootPath + "queries/tpch-queries-ch" | ||
override protected val queriesResults: String = rootPath + "mergetree-queries-output" | ||
|
||
/** Run Gluten + ClickHouse Backend with ColumnarShuffleManager */ | ||
override protected def sparkConf: SparkConf = { | ||
super.sparkConf | ||
.set("spark.shuffle.manager", "org.apache.spark.shuffle.sort.ColumnarShuffleManager") | ||
.set("spark.io.compression.codec", "LZ4") | ||
.set("spark.sql.shuffle.partitions", "5") | ||
.set("spark.sql.autoBroadcastJoinThreshold", "10MB") | ||
.set("spark.sql.adaptive.enabled", "true") | ||
.set("spark.gluten.sql.columnar.backend.ch.forceMemorySortShuffle", "true") | ||
} | ||
|
||
test("TPCH Q1") { | ||
runTPCHQuery(1) { df => } | ||
} | ||
|
||
test("TPCH Q2") { | ||
runTPCHQuery(2) { df => } | ||
} | ||
|
||
test("TPCH Q3") { | ||
runTPCHQuery(3) { df => } | ||
} | ||
|
||
test("TPCH Q4") { | ||
runTPCHQuery(4) { df => } | ||
} | ||
|
||
test("TPCH Q5") { | ||
runTPCHQuery(5) { df => } | ||
} | ||
|
||
test("TPCH Q6") { | ||
runTPCHQuery(6) { df => } | ||
} | ||
|
||
test("TPCH Q7") { | ||
runTPCHQuery(7) { df => } | ||
} | ||
|
||
test("TPCH Q8") { | ||
runTPCHQuery(8) { df => } | ||
} | ||
|
||
test("TPCH Q9") { | ||
runTPCHQuery(9) { df => } | ||
} | ||
|
||
test("TPCH Q10") { | ||
runTPCHQuery(10) { df => } | ||
} | ||
|
||
test("TPCH Q11") { | ||
runTPCHQuery(11) { df => } | ||
} | ||
|
||
test("TPCH Q12") { | ||
runTPCHQuery(12) { df => } | ||
} | ||
|
||
test("TPCH Q13") { | ||
runTPCHQuery(13) { df => } | ||
} | ||
|
||
test("TPCH Q14") { | ||
runTPCHQuery(14) { df => } | ||
} | ||
|
||
test("TPCH Q15") { | ||
runTPCHQuery(15) { df => } | ||
} | ||
|
||
test("TPCH Q16") { | ||
runTPCHQuery(16, noFallBack = false) { df => } | ||
} | ||
|
||
test("TPCH Q17") { | ||
runTPCHQuery(17) { df => } | ||
} | ||
|
||
test("TPCH Q18") { | ||
runTPCHQuery(18) { df => } | ||
} | ||
|
||
test("TPCH Q19") { | ||
runTPCHQuery(19) { df => } | ||
} | ||
|
||
test("TPCH Q20") { | ||
runTPCHQuery(20) { df => } | ||
} | ||
|
||
test("TPCH Q21") { | ||
runTPCHQuery(21, noFallBack = false) { df => } | ||
} | ||
|
||
test("TPCH Q22") { | ||
runTPCHQuery(22) { df => } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.