YannByron commented on code in PR #2521:
URL: https://github.com/apache/incubator-paimon/pull/2521#discussion_r1429561902


##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/catalyst/analysis/PaimonIncompatiblePHRRules.scala:
##########
@@ -43,6 +43,11 @@ case class PaimonIncompatiblePHRRules(session: SparkSession) 
extends Rule[Logica
         }.toMap
         PaimonTruncateTableCommand(table, partitionSpec)
 
+      case t @ ShowPartitions(PaimonRelation(table), specOpt, _) if t.resolved 
=>
+        PaimonShowTablePartitionsCommand(
+          table,
+          specOpt.map(s => s.asInstanceOf[ResolvedPartitionSpec]))

Review Comment:
   try this, maybe it can work too:
   ```
   import org.apache.spark.sql.execution.datasources.v2.DataSourceV2Implicits._
   specOpt.asResolvedPartitionSpecs
   ```



-- 
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]

Reply via email to