Skip to content
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

allow on-the-fly migration of primitive vs. boxed fields #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

c247t
Copy link
Collaborator

@c247t c247t commented Oct 1, 2024

Establishes wire compatibility of boxed and primitive types of the same content, obsoleting the need for declaring a new field and bridging with wrappers. The @externalize annotation has been enhanced to provide fine-grained control, defaulting to established practice.

The pLongNullValue attributes et.al. define the primitive value to be equivalent to null, which is implicitly applied to the field whenever null is read from the input.
The sparseBoxed attribute defines whether this conversion is to be mirrored when converting from primitive to boxed values, i.e. null is applied to the field whenever the corresponding value is encountered.

All null-equivalent values default to zero / false, while sparse boxing is enabled by default.

@c247t c247t requested a review from kelunik October 2, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant