cxzl25 commented on issue #4885:
URL: https://github.com/apache/kyuubi/issues/4885#issuecomment-1643139743

   > One possibility is that Hudi holds the wrong `SparkSession` instance.
   
   This is indeed possible, I have now noticed that Hudi initialization to 
obtain SparkSession is currently active, and then it may be wrong.
   
   org.apache.spark.sql.hudi.catalog.HoodieCatalog
   ```scala
     val spark: SparkSession = SparkSession.active
   ```
   
   org.apache.spark.sql.hudi.catalog.HoodieCatalog#loadTable
   ```scala
           val schemaEvolutionEnabled: Boolean = 
spark.sessionState.conf.getConfString(DataSourceReadOptions.SCHEMA_EVOLUTION_ENABLED.key,
             
DataSourceReadOptions.SCHEMA_EVOLUTION_ENABLED.defaultValue.toString).toBoolean
   ```
   


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

Reply via email to