viirya commented on code in PR #897:
URL: https://github.com/apache/datafusion-comet/pull/897#discussion_r1739223231
##########
spark/src/main/scala/org/apache/comet/CometSparkSessionExtensions.scala:
##########
@@ -95,6 +95,10 @@ class CometSparkSessionExtensions
plan
} else {
plan.transform {
+ case scanExec: FileSourceScanExec if
scanExec.partitionFilters.nonEmpty =>
Review Comment:
`BatchScanExec ` has `runtimeFilters`. I think it is similar?
```
case class BatchScanExec(
...
@transient private lazy val filteredPartitions: Seq[Seq[InputPartition]] = {
val dataSourceFilters = runtimeFilters.flatMap {
case DynamicPruningExpression(e) =>
DataSourceV2Strategy.translateRuntimeFilterV2(e)
case _ => None
}
...
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]