cloud-fan commented on a change in pull request #29649: URL: https://github.com/apache/spark/pull/29649#discussion_r484183375
########## File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala ########## @@ -1329,8 +1329,7 @@ private[client] class Shim_v3_0 extends Shim_v2_3 { isSrcLocal: Boolean): Unit = { val session = SparkSession.getActiveSession assert(session.nonEmpty) - val database = session.get.sessionState.catalog.getCurrentDatabase - val table = hive.getTable(database, tableName) + val table = hive.getTable(tableName) Review comment: just for curiosity, why can't we use `hive.getTable(dbName, tblName)` here? It looks weird that the `loadPartition` method in `HiveShim` takes a single `tableName` parameter which is a qualified name. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org