zhongyujiang commented on PR #6662: URL: https://github.com/apache/paimon/pull/6662#issuecomment-3570420680
Actually, Spark's `TRUNCATE TABLE` command already works this way—it correctly passes down the partCol = '' value, so it can properly delete the partition where partCol = ''. However, when partCol = null, this command will throw a NPE. My first commit in this PR fixes this issue. https://github.com/apache/paimon/blob/69b815918ef353540b9999255c8138b9d49bc28c/paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/catalyst/analysis/PaimonIncompatiblePHRRules.scala#L31-L45 -- 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]
