Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GH-40347: [C#] ArrowReaderImplementation: fix for out of range exception#40355

Closed
davidhcoe wants to merge 1 commit into
apache:mainapache/arrow:mainfrom
davidhcoe:dev/out-of-range-fixdavidhcoe/arrow:dev/out-of-range-fixCopy head branch name to clipboard
Closed

GH-40347: [C#] ArrowReaderImplementation: fix for out of range exception#40355
davidhcoe wants to merge 1 commit into
apache:mainapache/arrow:mainfrom
davidhcoe:dev/out-of-range-fixdavidhcoe/arrow:dev/out-of-range-fixCopy head branch name to clipboard

Conversation

@davidhcoe

@davidhcoe davidhcoe commented Mar 4, 2024

Copy link
Copy Markdown
Contributor

Rationale for this change

Adds an additional check for processing the loop to ensure it doesn't go longer than the FieldsList in the schema.

What changes are included in this PR?

Are these changes tested?

All tests pass with the change included

Are there any user-facing changes?

@github-actions

github-actions Bot commented Mar 4, 2024

Copy link
Copy Markdown

⚠️ GitHub issue #40347 has been automatically assigned in GitHub to PR creator.

@kou kou changed the title GH-40347: csharp/src/Apache.Arrow/Ipc/ArrowReaderImplementation: fix for out of range exception GH-40347: [C#] ArrowReaderImplementation: fix for out of range exception Mar 4, 2024

arrays.Add(ArrowArrayFactory.BuildArray(arrayData));
} while (recordBatchEnumerator.MoveNextNode());
} while (recordBatchEnumerator.MoveNextNode() && schemaFieldIndex < schema.FieldsList.Count);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable however a few questions @davidhcoe -

  • What happens to the state of recordBatchEnumerator if you haven't iterated through all the elements? Do you have to manually close it?
  • Similarly, what happens if you exhaust the recordBatchEnumerator before reaching the field list count? Do fields beyond this get exposed correctly?

@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Jul 22, 2025
@CurtHagenlocher

Copy link
Copy Markdown
Contributor

Hmm... I guess the conversations we previously had about this were over Teams and not on the pull request. That was clearly a mistake :(.

I don't feel like I understand the details of the FlatBuffers -> ArrayData conversion well enough to be able to evaluate this change. I have similar concerns to those expressed by @jduo. I was never able to get a repro of the reported exception, so I couldn't even debug through the code to understand the consequences.

@jduo

jduo commented Jul 24, 2025

Copy link
Copy Markdown
Member

Hmm... I guess the conversations we previously had about this were over Teams and not on the pull request. That was clearly a mistake :(.

I don't feel like I understand the details of the FlatBuffers -> ArrayData conversion well enough to be able to evaluate this change. I have similar concerns to those expressed by @jduo. I was never able to get a repro of the reported exception, so I couldn't even debug through the code to understand the consequences.

@CurtHagenlocher , would it make sense to close this PR for now? We can always re-open it.

@CurtHagenlocher

Copy link
Copy Markdown
Contributor

@davidhcoe I know it's been a very long time; do you recall the circumstances under which you observed the error? If not, then I think we should close this for now.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Unfortunately, this pull request has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this PR will be closed in 14 days. Feel free to re-open this if it has been closed in error. If you do not have repository permissions to reopen the PR, please tag a maintainer.

@github-actions github-actions Bot added the Status: stale-warning Issues and PRs flagged as stale which are due to be closed if no indication otherwise label Jul 26, 2026
@CurtHagenlocher

Copy link
Copy Markdown
Contributor

Closing as stale

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

Labels

awaiting committer review Awaiting committer review Component: C# Status: stale-warning Issues and PRs flagged as stale which are due to be closed if no indication otherwise

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.