MaxGekk commented on a change in pull request #30866:
URL: https://github.com/apache/spark/pull/30866#discussion_r546646534
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
##########
@@ -665,6 +665,9 @@ private[hive] class HiveClientImpl(
val catalogTable = getTable(db, table)
val hiveTable = toHiveTable(catalogTable, Some(userName))
specs.zip(newSpecs).foreach { case (oldSpec, newSpec) =>
+ if (client.getPartition(hiveTable, newSpec.asJava, false) != null) {
Review comment:
Maybe, there are more places here but I am not fixing them somehow
randomly. I find those issues while unifying tests for DSv2, DSv1 In-Memory and
Hive Table (SPARK-33381). More tests we will unify, more behavior differences
we will find, I guess.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]