cloud-fan commented on code in PR #47723:
URL: https://github.com/apache/spark/pull/47723#discussion_r1717664465
##########
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala:
##########
@@ -199,8 +201,12 @@ private[hive] class HiveMetastoreCatalog(sparkSession:
SparkSession) extends Log
fileType: String,
isWrite: Boolean): LogicalRelation = {
val metastoreSchema = relation.tableMeta.schema
- val tableIdentifier =
- QualifiedTableName(relation.tableMeta.database,
relation.tableMeta.identifier.table)
+ // scalastyle:off caselocale
+ val catalog = relation.tableMeta.identifier.catalog.getOrElse(
+ CatalogManager.SESSION_CATALOG_NAME).toLowerCase
Review Comment:
ditto, we shouldn't do special things for catalog name only.
--
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]