amaliujia commented on code in PR #47723:
URL: https://github.com/apache/spark/pull/47723#discussion_r1717672936
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala:
##########
@@ -263,6 +265,10 @@ class FindDataSourceTable(sparkSession: SparkSession)
extends Rule[LogicalPlan]
})
}
+ private def format(name: String): String = {
Review Comment:
removed since we do not need to handle catalog specially.
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala:
##########
@@ -244,7 +243,10 @@ object DataSourceAnalysis extends Rule[LogicalPlan] {
class FindDataSourceTable(sparkSession: SparkSession) extends
Rule[LogicalPlan] {
private def readDataSourceTable(
table: CatalogTable, extraOptions: CaseInsensitiveStringMap):
LogicalPlan = {
- val qualifiedTableName = QualifiedTableName(table.database,
table.identifier.table)
+ val catalogName =
+
format(table.identifier.catalog.getOrElse(CatalogManager.SESSION_CATALOG_NAME))
Review Comment:
ack
--
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]