-
Notifications
You must be signed in to change notification settings - Fork 82
feat(c++): specify underlying types for enums in fwd.h #811
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
feat(c++): specify underlying types for enums in fwd.h #811
Conversation
|
https://github.com/apache/incubator-graphar/actions/runs/20261430580/job/58288535539 format code |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #811 +/- ##
============================================
+ Coverage 76.74% 76.82% +0.08%
Complexity 593 593
============================================
Files 84 85 +1
Lines 8883 8825 -58
Branches 1042 1040 -2
============================================
- Hits 6817 6780 -37
+ Misses 1836 1815 -21
Partials 230 230
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I’ve run clang-format and cpplint locally and pushed the formatting fixes. Thanks for the guidance! |
|
I’ve run clang-format and cpplint locally and pushed the formatting fixes. |
|
I’ve updated the code and reformatted it using clang-format-8 (via Docker) to match the CI environment. Thanks for your patience. |
|
any updates on this PR? My upcoming Rust bindings will rely on the enums in
Thoughts? |
|
Thanks for the suggestions! I’ll take a closer look and follow up in the comments shortly. |
|
I have added |
|
I have pushed changes with |
|
I think these are enough. If we find there is anything else that needs to be changed, please sync them in the issue #809. |
yangxk1
left a comment
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.
Thank You~ @shivendra-dev54
|
cc @Sober7135 |
Fixes #809
Reason for this PR
The
graphar::Typeenum is part of public APIs and is also used inserialization / layout-sensitive code paths. Previously, its underlying
type was implicit, which makes the width platform-dependent.
This PR makes the underlying type explicit so that it is stable and
well-defined across platforms.
What changes are included in this PR?
graphar::Typeto use an explicitint32_tunderlying typefwd.hwith the enum definitionNo behavior changes are intended.
Testing
availability issues in the conda-forge Arrow version
Are there any user-facing changes?
No. This change is internal and does not affect file formats or API behavior.