-
Notifications
You must be signed in to change notification settings - Fork 1.6k
refactor: shrink SchemaError
#16653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: shrink SchemaError
#16653
Conversation
datafusion/common/src/error.rs
Outdated
|
||
#[test] | ||
fn test_error_size() { | ||
assert_eq!(size_of::<SchemaError>(), 40); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3
Is this also something we could see in benchmarks? |
Potentially, but I guess that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @crepererum for taking care of that, I suspect it is motivated by clippy complains https://rust-lang.github.io/rust-clippy/v0.0.212/#large_enum_variant
I think technically this is an API change so it would nice to leave a note in the upgrade guide. I'll make a PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THanks @crepererum
yes, that was the hint that triggered that investigation |
7937ecf
to
32d47d5
Compare
Rebased after #16672. |
32d47d5
to
be0fdad
Compare
One step towards apache#16652. Co-authored-by: Oleks V <comphead@users.noreply.github.com> Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
be0fdad
to
ef32eba
Compare
Which issue does this PR close?
Rationale for this change
What changes are included in this PR?
Box a field.
Are these changes tested?
Unit test.
Are there any user-facing changes?
Breaking:
SchemaError::AmbiguousReference::column
is now boxed.