Skip to content

[AURON #1743] Support ORC reader batch size - #2525

Open
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:Auron-1743-support-orc-batch-size
Open

Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:Auron-1743-support-orc-batch-size

Conversation

@Sigma-Ma

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #1743

Rationale for this change

Native ORC reads use the global batch size. Reducing it to handle large String/Binary values also affects other native operators.

What changes are included in this PR?

Add spark.auron.orc.batchSize and pass it to the ORC reader through the existing JNI configuration path. The value must be positive and defaults to spark.auron.batchSize.

Add regression coverage for configuration validation, ORC batch boundaries, and unchanged Parquet batching. Document the new setting.

Are there any user-facing changes?

Users can configure native ORC reader batches independently at application startup. Existing defaults are preserved; downstream operators may still coalesce batches.

How was this patch tested?

  • env RUSTFLAGS='-C target-cpu=native' cargo test --profile pre --locked -p datafusion-ext-plans orc_exec::tests.
  • ./build/mvn -Ppre -Pspark-3.5 -Pscala-2.12 -pl spark-extension-shims-spark -DskipBuildNative '-Dsuites=org.apache.auron.AuronQuerySuite ORC reader batch size' test.
  • ./build/mvn -Ppre -Pspark-4.0 -Pscala-2.13 -pl spark-extension-shims-spark -DskipBuildNative '-Dsuites=org.apache.auron.AuronQuerySuite ORC reader batch size' test.
  • ./dev/reformat --check.

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

  • Yes
  • No

Generated-by: Codex (GPT-6)

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

@github-actions github-actions Bot added documentation Improvements or additions to documentation spark native labels Sep 13, 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 spark

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support ORC batch size

1 participant