cloud-fan commented on a change in pull request #32364:
URL: https://github.com/apache/spark/pull/32364#discussion_r639396997
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
##########
@@ -48,7 +48,7 @@ import org.apache.spark.sql.util.{CaseInsensitiveStringMap,
PartitioningUtils}
import org.apache.spark.util.Utils
object SessionCatalog {
- val DEFAULT_DATABASE = "default"
+ val DEFAULT_DATABASE = SQLConf.get.defaultDatabase
Review comment:
BTW it's a bit tricky to access the active SQLConf in scala object. Can
we read the conf in `BaseSessionStateBuilder` and pass it to `SessionCatalog`?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]