maomaodev commented on code in PR #7378:
URL: https://github.com/apache/kyuubi/pull/7378#discussion_r3032245806
##########
extensions/spark/kyuubi-spark-connector-hive/src/main/scala/org/apache/kyuubi/spark/connector/hive/HiveTableCatalog.scala:
##########
@@ -488,6 +488,28 @@ class HiveTableCatalog(sparkSession: SparkSession)
}
}
+ /**
+ * Returns the default database path with catalog-level warehouse
configuration precedence.
+ *
+ * This method resolves the database path using the following priority order:
+ * 1. Catalog-level
`spark.sql.catalog.<catalog>.hive.metastore.warehouse.dir`
+ * 2. Global-level `spark.sql.warehouse.dir` (Underlying)
+ *
+ * @param db database name
+ * @return qualified URI path for the database
+ */
+ private def getCatalogDefaultDBPath(db: String): URI = {
+ val defaultLocation = catalog.getDefaultDBPath(db)
+ val catalogWarehouseDir =
catalogOptions.get("hive.metastore.warehouse.dir")
Review Comment:
updated
--
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]