boneanxs commented on code in PR #10024:
URL: https://github.com/apache/hudi/pull/10024#discussion_r1387540620


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/catalyst/catalog/HoodieCatalogTable.scala:
##########
@@ -169,9 +170,10 @@ class HoodieCatalogTable(val spark: SparkSession, var 
table: CatalogTable) exten
   lazy val partitionSchema: StructType = StructType(tableSchema.filter(f => 
partitionFields.contains(f.name)))
 
   /**
-   * All the partition paths
+   * All the partition paths, excludes lazily deleted partitions.
    */
   def getPartitionPaths: Seq[String] = getAllPartitionPaths(spark, table)
+    
.filter(!TimelineUtils.getDroppedPartitions(metaClient.getActiveTimeline).contains(_))
 

Review Comment:
   Oh! make senses, thanks for point this, let me fix it.



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