Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Mar 12, 2025

Which issue does this PR close?

Rationale for this change

Rationale for the original change (from @XiangpengHao):

When working on the nightly rust, I noticed that clippy warns about FlightError too large, more than 176 bytes.

I think it makes sense to keep the error small (32 bytes), as the Result<...> is used in a lot of places.

This PR basically makes Tonic(tonic::Status) into Tonic(Box<tonic::Status>), which reduces the FlightError from 176 bytes down to 32 bytes.

This adds an extra allocation on error, but should probably be fine as it's not on hot path.

What changes are included in this PR?

Are there any user-facing changes?

@alamb alamb added api-change Changes to the arrow API next-major-release the PR has API changes and it waiting on the next major version labels Mar 12, 2025
@github-actions github-actions bot added arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate labels Mar 12, 2025
@alamb
Copy link
Contributor Author

alamb commented Mar 24, 2025

main is open for breaking changes, so let's merge this one in

@alamb alamb merged commit 87ff531 into apache:main Mar 24, 2025
12 checks passed
@alamb alamb deleted the alamb/revert_revert branch March 24, 2025 16:39
wiedld pushed a commit to influxdata/arrow-rs that referenced this pull request May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-change Changes to the arrow API arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate next-major-release the PR has API changes and it waiting on the next major version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant