JingsongLi commented on code in PR #4339:
URL: https://github.com/apache/paimon/pull/4339#discussion_r1804072990
##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/PaimonPartitionManagement.scala:
##########
@@ -69,10 +69,20 @@ trait PaimonPartitionManagement extends
SupportsAtomicPartitionManagement {
case fileStoreTable: FileStoreTable =>
val partitions =
toPaimonPartitions(rows).map(_.asInstanceOf[JMap[String, String]])
val commit: FileStoreCommit =
fileStoreTable.store.newCommit(UUID.randomUUID.toString)
+ var metastoreClient: MetastoreClient = null
+ val clientFactory =
fileStoreTable.catalogEnvironment().metastoreClientFactory
try {
commit.dropPartitions(partitions.toSeq.asJava,
BatchWriteBuilder.COMMIT_IDENTIFIER)
+ // sync to metastore with delete partitions
+ if (clientFactory != null) {
Review Comment:
should check `metastore.partitioned-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]