cloud-fan commented on a change in pull request #34218:
URL: https://github.com/apache/spark/pull/34218#discussion_r724753714
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala
##########
@@ -1236,13 +1236,14 @@ private[spark] class HiveExternalCatalog(conf:
SparkConf, hadoopConf: Configurat
db: String,
table: String,
partialSpec: Option[TablePartitionSpec] = None):
Seq[CatalogTablePartition] = withClient {
- val partColNameMap = buildLowerCasePartColNameMap(getTable(db, table))
- val metaStoreSpec = partialSpec.map(toMetaStorePartitionSpec)
- val res = client.getPartitions(db, table, metaStoreSpec)
+ val rawTable = getRawTable(db, table)
+ val catalogTable = restoreTableMetadata(rawTable)
Review comment:
can we just do `val tableDef = getTable(db, table)`?
--
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]