You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/06/15 09:09:13 UTC
[GitHub] [incubator-kyuubi] wForget commented on a diff in pull request #2882: [KYUUBI #2543] Add `maxPartitionBytes` configuration for TPC-DS connecter
wForget commented on code in PR #2882:
URL: https://github.com/apache/incubator-kyuubi/pull/2882#discussion_r897732894
##########
extensions/spark/kyuubi-spark-connector-tpcds/src/test/scala/org/apache/kyuubi/spark/connector/tpcds/TPCDSQuerySuite.scala:
##########
@@ -85,4 +88,29 @@ class TPCDSQuerySuite extends KyuubiFunSuite {
}
}
}
+
+ test("test maxPartitionBytes") {
+ val taskPartitionBytes: Long = 1 * 1024 * 1024L
+ val sparkConf = new SparkConf().setMaster("local[*]")
+ .set("spark.ui.enabled", "false")
+ .set("spark.sql.catalogImplementation", "in-memory")
+ .set("spark.sql.catalog.tpcds", classOf[TPCDSCatalog].getName)
+ .set(
+ s"$TPCDS_CONNECTOR_READ_CONF_PREFIX.$MAX_PARTITION_BYTES_CONF",
+ String.valueOf(taskPartitionBytes))
+ withSparkSession(SparkSession.builder.config(sparkConf).getOrCreate()) { spark =>
+ val tableName = "catalog_returns"
+ val table = Table.getTable(tableName)
+ val scale = 100
+ val df = spark.sql(s"select * from tpcds.sf$scale.$tableName")
Review Comment:
> how long will it take on github action?
This seems to execute quickly because the sql is not actually executed. I have moved this test case into TPCDSTableSuite.
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org