felixYyu commented on issue #5779:
URL: https://github.com/apache/hudi/issues/5779#issuecomment-1149355274

   adding below spark config, the result is also empty. I think the 
sparksession does not loading metadata? 
   
   ```
   val spark = SparkSession
         .builder()
         .master("local[*]")
         .appName("HoodieAPI")
   //      .withExtensions(new HoodieSparkSessionExtension)
         .config("spark.serializer", 
"org.apache.spark.serializer.KryoSerializer")
         .config("spark.sql.extensions", 
"org.apache.spark.sql.hudi.HoodieSparkSessionExtension")
         .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()
   
   spark.sql("show tables").show(false)
   ```


-- 
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]

Reply via email to