You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2022/11/07 10:33:59 UTC
[incubator-kyuubi] branch master updated: [KYUUBI #3772] Switch default catalog to tpcds in playground
This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new a9c254790 [KYUUBI #3772] Switch default catalog to tpcds in playground
a9c254790 is described below
commit a9c254790395345d5d991cf8c05947aac1c84565
Author: Cheng Pan <ch...@apache.org>
AuthorDate: Mon Nov 7 18:33:47 2022 +0800
[KYUUBI #3772] Switch default catalog to tpcds in playground
### _Why are the changes needed?_
Kyuubi JDBC driver supports setting catalog in JDBC url since #3516, which is not released yet. To unblock third party apps integrate w/ Kyuubi, I propose to change the default catalog of playground to tpcds, so that the client can see the tables after starting playground immediately.
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request
Closes #3772 from pan3793/catalog-tpcds.
Closes #3772
99670366 [Cheng Pan] load
c590c636 [Cheng Pan] Switch default catalog to tpcds in playground
Authored-by: Cheng Pan <ch...@apache.org>
Signed-off-by: Cheng Pan <ch...@apache.org>
---
docker/playground/image/load-dataset-tpcds-tiny.sql | 4 ++--
docker/playground/image/load-dataset-tpch-tiny.sql | 4 ++--
docker/playground/image/spark-defaults.conf | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/docker/playground/image/load-dataset-tpcds-tiny.sql b/docker/playground/image/load-dataset-tpcds-tiny.sql
index e76cd0cd9..b65cb929b 100644
--- a/docker/playground/image/load-dataset-tpcds-tiny.sql
+++ b/docker/playground/image/load-dataset-tpcds-tiny.sql
@@ -16,9 +16,9 @@
SET tiny_schema=tpcds.tiny;
-CREATE DATABASE IF NOT EXISTS tpcds_tiny;
+CREATE DATABASE IF NOT EXISTS spark_catalog.tpcds_tiny;
-USE tpcds_tiny;
+USE spark_catalog.tpcds_tiny;
--
-- Name: catalog_sales; Type: TABLE; Tablespace:
diff --git a/docker/playground/image/load-dataset-tpch-tiny.sql b/docker/playground/image/load-dataset-tpch-tiny.sql
index 9f18466ae..8ee76640e 100644
--- a/docker/playground/image/load-dataset-tpch-tiny.sql
+++ b/docker/playground/image/load-dataset-tpch-tiny.sql
@@ -16,9 +16,9 @@
SET tiny_schema=tpch.tiny;
-CREATE DATABASE IF NOT EXISTS tpch_tiny;
+CREATE DATABASE IF NOT EXISTS spark_catalog.tpch_tiny;
-USE tpch_tiny;
+USE spark_catalog.tpch_tiny;
--
-- Name: customer; Type: TABLE; Tablespace:
diff --git a/docker/playground/image/spark-defaults.conf b/docker/playground/image/spark-defaults.conf
index 7891c83db..9d1d4a602 100644
--- a/docker/playground/image/spark-defaults.conf
+++ b/docker/playground/image/spark-defaults.conf
@@ -22,7 +22,7 @@ spark.driver.host=0.0.0.0
spark.ui.port=4040
spark.sql.shuffle.partitions=16
spark.sql.warehouse.dir=s3a://spark-bucket/warehouse
-spark.sql.defaultCatalog=spark_catalog
+spark.sql.defaultCatalog=tpcds
spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions
spark.hadoop.fs.s3a.bucket.spark-bucket.committer.magic.enabled=true
spark.hadoop.fs.s3a.bucket.iceberg-bucket.committer.magic.enabled=true