Weixin-Xu commented on code in PR #13492: URL: https://github.com/apache/gluten/pull/13492#discussion_r4421637315
########## backends-bolt/src/test/scala/org/apache/gluten/execution/BoltTPCHSuite.scala: ########## @@ -0,0 +1,59 @@ +/* + * 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.gluten.config.{BoltConfig, GlutenConfig} + +import org.apache.spark.SparkConf + +/** TPC-H fixture shared by Bolt's table-format suites, matching Velox's default subtype. */ +abstract class BoltTPCHSuite extends BoltWholeStageTransformerSuite { + protected val rootPath: String = getClass.getResource("/").getPath + override protected val resourcePath: String = "/tpch-data-parquet" + override protected val fileFormat: String = "parquet" + protected val tpchQueries: String = + rootPath + "../../../../tools/gluten-it/common/src/main/resources/tpch-queries" + protected val queriesResults: String = rootPath + "queries-output" + + override protected def sparkConf: SparkConf = { + super.sparkConf + .set("spark.shuffle.manager", "org.apache.spark.shuffle.sort.ColumnarShuffleManager") + .set("spark.sql.files.maxPartitionBytes", "1g") + .set("spark.sql.shuffle.partitions", "1") + .set(BoltConfig.COLUMNAR_BOLT_MEM_INIT_CAPACITY.key, "1m") + .set("spark.memory.offHeap.size", "2g") + .set("spark.unsafe.exceptionOnMemoryLeak", "true") + .set("spark.sql.autoBroadcastJoinThreshold", "-1") + .set(GlutenConfig.COLUMNAR_FORCE_SHUFFLED_HASH_JOIN_ENABLED.key, "true") + } + + override def beforeAll(): Unit = { + super.beforeAll() + createTPCHNotNullTables() Review Comment: Removed the eagerly resolved resourcePath override from BoltTPCHDeltaSuite. It now inherits the classpath resource name /tpch-data-parquet, which is resolved once when creating the tables. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
