Deegue opened a new pull request #26421: [SPARK-29785][SQL] Optimize opening session of Spark Thrift Server URL: https://github.com/apache/spark/pull/26421 ### What changes were proposed in this pull request? Add configuration `spark.sql.thriftServer.ignoreDefaultDatabase` to control whether it will request a free executor when we opening a new session of Spark Thrift Server. `use:database` is supported in [SPARK-17819](https://issues.apache.org/jira/browse/SPARK-17819). If we set `spark.sql.thriftServer.ignoreDefaultDatabase=true`, we don't need to allocate an executor and opening a session to Spark Thrift Server costs only ~100ms. ### Why are the changes needed? It's not reasonable that a free executor is needed when we open a session. Especially when all the executors are busy and our cluster is under big pressure. ### Does this PR introduce any user-facing change? If you don't need opening a session to Spark Thrift Server with configurations, it's better to set `spark.sql.thriftServer.ignoreDefaultDatabase=true`. The default of `spark.sql.thriftServer.ignoreDefaultDatabase` is false. ### How was this patch tested? Manual.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
