gleonSun opened a new issue, #8926:
URL: https://github.com/apache/incubator-gluten/issues/8926

   ### Description
   
   In my environment, there is a case where multiple threads create Spark 
Sessions, and the `activeSession` cannot be set accurately. However, the 
`defaultSession` after Spark initialization is fixed. The method for obtaining 
parameters needs to be adjusted: when `activeSession` is `None`, retrieve 
`defaultSession`, or throw a more explicit exception.Spark provides this 
approach, accessible directly via `SparkSession.active`.  
   
   The direct error occurs when calling the 
`ClickhouseTable.forPath(sparkSession: SparkSession, path: String)` method. 
When the logic reaches `ClickhouseSnapshot.genSnapshotId`, it fails during the 
first initialization of `ClickhouseSnapshot`, throwing an unfriendly error. 
This logic needs optimization, hence this issue is raised.


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