Skip to content

Feature/orc adapter 2#25

Open
cbb330 wants to merge 3 commits intomain-originalfrom
feature/orc-adapter-2
Open

Feature/orc adapter 2#25
cbb330 wants to merge 3 commits intomain-originalfrom
feature/orc-adapter-2

Conversation

@cbb330
Copy link
Copy Markdown
Owner

@cbb330 cbb330 commented Mar 23, 2026

Thanks for opening a pull request!

If this is your first pull request you can find detailed information on how to contribute here:

Please remove this line and the above text before creating your pull request.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

This PR includes breaking changes to public APIs. (If there are any breaking changes to public APIs, please explain which changes are breaking. If not, you can remove this.)

This PR contains a "Critical Fix". (If the changes fix either (a) a security vulnerability, (b) a bug that caused incorrect or invalid data to be produced, or (c) a bug that causes a crash (even when the API contract is upheld), please provide explanation. If not, you can remove this.)

cbb330 and others added 3 commits February 25, 2026 17:42
Add ConvertColumnStatistics, BuildSchemaManifest, and related helpers
to the ORC adapter along with comprehensive tests.
… and add tests

- Prevent int64 overflow when converting timestamp millis to nanoseconds
  by checking bounds before multiplication
- Return empty table instead of error when ReadStripes gets empty indices
- Use RecordBatch vector + FromRecordBatches instead of Table + ConcatenateTables
- Inline dynamic_cast in ConvertColumnStatistics for cleaner code
- Fix Date32Scalar constructor to use default type
- Add decimal statistics test and nested schema manifest test
- Add precise timestamp statistics value assertions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add an ORC statistics wrapper that owns liborc statistics lifetimes and centralizes type downcasting behind a stable API, then move scalar materialization into OrcStatisticsAsScalars. Update ORC reader statistics APIs and tests to consume the wrapper boundary.

Made-with: Cursor
@github-actions
Copy link
Copy Markdown

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant