Skip to content

GH-41302: [C#][Integration] Fix writing list and binary arrays with zero length offsets to IPC format#41303

Merged
CurtHagenlocher merged 1 commit intoapache:mainfrom
adamreeve:integration_fix
Apr 19, 2024
Merged

GH-41302: [C#][Integration] Fix writing list and binary arrays with zero length offsets to IPC format#41303
CurtHagenlocher merged 1 commit intoapache:mainfrom
adamreeve:integration_fix

Conversation

@adamreeve
Copy link
Copy Markdown
Contributor

@adamreeve adamreeve commented Apr 19, 2024

Rationale for this change

Fixes the integration test failures caused by #41230

What changes are included in this PR?

Only try to access the offset values if the array length is non-zero when writing list and binary arrays to IPC format.

Are these changes tested?

Yes, I've manually run the integration tests with C# and Java to verify they pass (when also including the changes from #41264), and also added new unit tests for this.

Are there any user-facing changes?

This may also be a bug that affects users but it isn't in a released version.

@github-actions
Copy link
Copy Markdown

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

@conbench-apache-arrow
Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit bfc0dcb.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 95 possible false positives for unstable benchmarks that are known to sometimes produce them.

raulcd pushed a commit that referenced this pull request Apr 29, 2024
…ero length offsets to IPC format (#41303)

### Rationale for this change

Fixes the integration test failures caused by #41230

### What changes are included in this PR?

Only try to access the offset values if the array length is non-zero when writing list and binary arrays to IPC format.

### Are these changes tested?

Yes, I've manually run the integration tests with C# and Java to verify they pass (when also including the changes from #41264), and also added new unit tests for this.

### Are there any user-facing changes?

This may also be a bug that affects users but it isn't in a released version.
* GitHub Issue: #41302

Authored-by: Adam Reeve <adreeve@gmail.com>
Signed-off-by: Curt Hagenlocher <curt@hagenlocher.org>
vibhatha pushed a commit to vibhatha/arrow that referenced this pull request May 25, 2024
…with zero length offsets to IPC format (apache#41303)

### Rationale for this change

Fixes the integration test failures caused by apache#41230

### What changes are included in this PR?

Only try to access the offset values if the array length is non-zero when writing list and binary arrays to IPC format.

### Are these changes tested?

Yes, I've manually run the integration tests with C# and Java to verify they pass (when also including the changes from apache#41264), and also added new unit tests for this.

### Are there any user-facing changes?

This may also be a bug that affects users but it isn't in a released version.
* GitHub Issue: apache#41302

Authored-by: Adam Reeve <adreeve@gmail.com>
Signed-off-by: Curt Hagenlocher <curt@hagenlocher.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants