Skip to content

[AURON #2726] Honor initial defaults in native Iceberg Parquet scans - #2752

Open
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:Auron-2726-honor-initial-defaults-in-native-iceberg-scans
Open

Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:Auron-2726-honor-initial-defaults-in-native-iceberg-scans

Conversation

@Sigma-Ma

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #2726

Rationale for this change

Native Iceberg Parquet scans treated fields absent from older files as NULL. When a field has an initial-default, this can return incorrect values and filter out matching rows.

What changes are included in this PR?

  • Pass typed initial defaults to the native Parquet reader by Iceberg field ID.
  • Use the same field resolution for projection and predicate adaptation. Apply the default when the field is confirmed absent and preserve NULL values stored in the file.
  • Add regression coverage for projections and filters, including files where an unrelated column has no field ID.

Are there any user-facing changes?

Yes. Native Parquet snapshot scans without delete files now honor initial defaults for supported top-level scalar fields. Iceberg remains pinned to 1.10.1.

How was this patch tested?

cargo fmt --all --check

./build/mvn -B -ntp -Ppre,spark-3.5,scala-2.12 -pl auron-core -am -DskipTests -DskipBuildNative install

./build/mvn -B -ntp -Ppre,spark-3.5,scala-2.12,iceberg-1.10.1 -pl thirdparty/auron-iceberg -DskipBuildNative -DskipTests=false -Dsuites=org.apache.auron.iceberg.AuronIcebergIntegrationSuite test-compile scalatest:test

./build/mvn -B -ntp -Ppre,spark-3.5,scala-2.12,iceberg-1.10.1 -pl thirdparty/auron-iceberg spotless:check

./build/mvn -B -ntp -Ppre,spark-4.0,scala-2.13 -pl auron-core -am -DskipTests -DskipBuildNative -Drat.skip=true install

./build/mvn -B -ntp -Ppre,spark-4.0,scala-2.13,iceberg-1.10.1 -pl thirdparty/auron-iceberg -DskipBuildNative -DskipTests=false -Dsuites=org.apache.auron.iceberg.AuronIcebergIntegrationSuite test-compile scalatest:test

Was this patch authored or co-authored using generative AI tooling?

  • Yes
  • No

Generated-by: GPT-6

ASF guidance: https://www.apache.org/legal/generative-tooling.html

@github-actions github-actions Bot added documentation Improvements or additions to documentation native thirdparty-iceberg labels Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation native thirdparty-iceberg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native Iceberg Parquet scans ignore initial-default values

1 participant