You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/10/08 04:34:24 UTC
[GitHub] [spark] HyukjinKwon commented on a change in pull request #34218: [SPARK-35531][SQL] Fix can not insert into hive bucket table if create table with upper case schema
HyukjinKwon commented on a change in pull request #34218:
URL: https://github.com/apache/spark/pull/34218#discussion_r724693829
##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala
##########
@@ -1236,9 +1236,10 @@ 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 catalogTable = getTable(db, table)
+ val partColNameMap = buildLowerCasePartColNameMap(catalogTable)
val metaStoreSpec = partialSpec.map(toMetaStorePartitionSpec)
- val res = client.getPartitions(db, table, metaStoreSpec)
+ val res = client.getPartitions(catalogTable, metaStoreSpec)
Review comment:
@AngersZhuuuu what's the diff before/after? I couldn't follow.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org