1358035421 opened a new pull request, #7138:
URL: https://github.com/apache/kyuubi/pull/7138

   ### Why are the changes needed?
   <img width="891" height="596" alt="image" 
src="https://github.com/user-attachments/assets/09e5d5eb-bd37-42d7-9aa1-54d58728478d";
 />
   **Current Behavior:**
   
   When "kyuubi.engine.share.level = USER/GROUP/SERVER", the first client 
(Client A) calling openSession creates a Kyuubi-Spark-SQL-Engine (Spark 
Driver), where the initialization SQL configured in 
"kyuubi.engine.spark.initialize.sql" takes effect.
   
   Subsequent clients (e.g., Client B) connecting via openSession will reuse 
the existing Kyuubi-Spark-SQL-Engine (Spark Driver) created in step 1, where 
the initialization SQL configured in "kyuubi.engine.spark.initialize.sql" 
becomes ineffective.
   
   **Why This Capability Is Needed:**
   
   Currently, kyuubi.engine.spark.initialize.sql only applies to the first 
openSession client. All subsequent SQL operations inherit the initialization 
SQL configuration from the first client (this appears to be a potential bug).
   
   Client A may need to set "USE dbA" in its current SQL context, while Client 
B may need "USE dbB" in its own context - such scenarios should be supported.
   
   
   ### How was this patch tested?
   Tested on local Kyuubi/Spark cluster. No existing unit tests cover this 
scenario. Please point me to any relevant tests so I can add them
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   
   


-- 
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: notifications-unsubscr...@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org
For additional commands, e-mail: notifications-h...@kyuubi.apache.org

Reply via email to