linliu-code commented on code in PR #17601:
URL: https://github.com/apache/hudi/pull/17601#discussion_r2744199322
##########
hudi-spark-datasource/hudi-spark3.5.x/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/Spark35LegacyHoodieParquetFileFormat.scala:
##########
@@ -506,4 +522,70 @@ object Spark35LegacyHoodieParquetFileFormat {
original.getBlocks
)
}
+
+ // Helper to replace filters on timestamp-millis columns with AlwaysTrue to
avoid incorrect filter pushdown.
+ // This preserves compound filters (And/Or) so other parts can still be
pushed down.
+ private def replaceTimestampMillisFiltersWithAlwaysTrue(filters: Seq[Filter],
+ avroTableSchema:
Schema,
Review Comment:
done.
##########
hudi-spark-datasource/hudi-spark3.4.x/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/Spark34LegacyHoodieParquetFileFormat.scala:
##########
@@ -500,4 +516,71 @@ object Spark34LegacyHoodieParquetFileFormat {
original.getBlocks
)
}
+
+ // Helper to replace filters on timestamp-millis columns with AlwaysTrue to
avoid incorrect filter pushdown.
+ // This preserves compound filters (And/Or) so other parts can still be
pushed down.
+ private def replaceTimestampMillisFiltersWithAlwaysTrue(filters: Seq[Filter],
Review Comment:
done.
--
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]