Skip to content

Commit

Permalink
add call dropStats when use spark read paimon
Browse files Browse the repository at this point in the history
  • Loading branch information
hongli.wwj committed Feb 15, 2025
1 parent 9d2a460 commit d23ac55
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ class PaimonScanBuilder(table: Table)
val pushedPartitionPredicate = PredicateBuilder.and(pushedPaimonPredicates.toList.asJava)
readBuilder.withFilter(pushedPartitionPredicate)
}
val dataSplits = readBuilder.newScan().plan().splits().asScala.map(_.asInstanceOf[DataSplit])
val dataSplits =
readBuilder.dropStats().newScan().plan().splits().asScala.map(_.asInstanceOf[DataSplit])
if (!dataSplits.forall(_.mergedRowCountAvailable())) {
return false
}
Expand Down

0 comments on commit d23ac55

Please sign in to comment.