You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "yingjianwu98 (via GitHub)" <gi...@apache.org> on 2026/10/01 22:12:51 UTC
Re: [PR] Spark: Fix predicate pushdown on changelog metadata column [iceberg]
yingjianwu98 commented on code in PR #18148:
URL: https://github.com/apache/iceberg/pull/18148#discussion_r4161033138
##########
spark/v4.2/spark/src/main/java/org/apache/iceberg/spark/source/SparkChangelogScanBuilder.java:
##########
@@ -35,11 +43,46 @@
public class SparkChangelogScanBuilder extends BaseSparkScanBuilder
implements SupportsPushDownV2Filters, SupportsPushDownRequiredColumns, SupportsPushDownLimit {
+ private static final Set<String> CHANGELOG_METADATA_COLUMNS =
+ ImmutableSet.of(
+ MetadataColumns.CHANGE_TYPE.name(),
+ MetadataColumns.CHANGE_ORDINAL.name(),
+ MetadataColumns.COMMIT_SNAPSHOT_ID.name());
+
SparkChangelogScanBuilder(
SparkSession spark, Table table, Schema schema, CaseInsensitiveStringMap options) {
super(spark, table, schema, options);
}
+ @Override
+ public Predicate[] pushPredicates(Predicate[] predicates) {
+ List<Predicate> unpushableChangelogPredicates = Lists.newArrayList();
+ List<Predicate> pushableCandidates = Lists.newArrayList();
+
+ for (Predicate predicate : predicates) {
Review Comment:
Thanks for the comment @manuzhang
Could you help elaborate more on this? I believe I have filtered out `CHANGELOG_METADATA_COLUMNS`
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org