felixYyu opened a new issue, #5779: URL: https://github.com/apache/hudi/issues/5779
**_Tips before filing an issue_** - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)? - Join the mailing list to engage in conversations and get faster support at [email protected]. - If you have triaged this as a bug, then file an [issue](https://issues.apache.org/jira/projects/HUDI/issues) directly. **Describe the problem you faced** A clear and concise description of the problem. **To Reproduce** Steps to reproduce the behavior: 1.create spark session ``` val spark = SparkSession .builder() .master("local[*]") .appName("HoodieAPI") .withExtensions(new HoodieSparkSessionExtension) .config("spark.serializer", "org.apache.spark.serializer.KryoSerializer") .config("hoodie.insert.shuffle.parallelism", "4") .config("hoodie.upsert.shuffle.parallelism", "4") .config("hoodie.delete.shuffle.parallelism", "4") .config("spark.sql.warehouse.dir", "file:///D://hudi-data/testdb/") .config("spark.sql.catalog.spark_catalog", "org.apache.spark.sql.hudi.catalog.HoodieCatalog") .getOrCreate() ``` 2.create db ``` spark.sql("create database if not exists testdb") spark.sql("use testdb") ``` 3.create hudi table ``` spark.sql( s""" |create table if not exists testdb.$tableName ( |id bigint, |name string, |dt string, |hh string, |ts timestamp |) using hudi |partitioned by (dt, hh) |tblproperties( | hoodie.database.name = 'testdb', | primaryKey = 'id', | preCombineField = 'ts', | hoodie.datasource.write.operation = 'upsert', | hoodie.datasource.meta.sync.enable = 'true', | type = '$tableType' | ) | options ( | hoodie.metadata.enable = 'true' | ) | location '$basePath' |""".stripMargin) ``` 4.`spark.sql("show tables").show(false)` +---------+---------------+-----------+ |namespace|tableName |isTemporary| +---------+---------------+-----------+ |testdb |hudi_trips_mor2|false | +---------+---------------+-----------+ 5.**only `show tables` runing again via spark, the result is empty, how to setting SparkSession**? +---------+---------------+-----------+ |namespace|tableName |isTemporary| +---------+---------------+-----------+ +---------+---------------+-----------+ **Expected behavior** A clear and concise description of what you expected to happen. **Environment Description** * Hudi version :0.11.0 * Spark version :3.2.1 * Hive version :3.1.3 * Hadoop version : * Storage (HDFS/S3/GCS..) :local * Running on Docker? (yes/no) 🔕 **Additional context** Add any other context about the problem here. **Stacktrace** ```Add the stacktrace of the error.``` -- 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]
