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

Pass property attributes down to list data field #559

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

agaskill
Copy link
Contributor

@agaskill agaskill commented Oct 2, 2024

Attributes decorating a list-type class member are not accessible to ConstructDataField when creating the element data field. This commit passes the ClassMember object representing the list down to ConstructListField so that it can pass it to MakeField for the list element. This allows decorating a list of strings with, for example, ParquetRequired, so that the list elements are not nullable. Or a list of DateTimes as ParquetTimestamp, to control how the DateTime elements are serialized.

Attributes decorating a list-type class member are not accessible to
ConstructDataField when creating the element data field.  This commit
passes the ClassMember object representing the list down to
ConstructListField so that it can pass it to MakeField for the list
element.  This allows decorating a list of strings with, for example,
ParquetRequired, so that the list elements are not nullable.  Or a
list of DateTimes as ParquetTimestamp, to control how the DateTime
elements are serialized.
@aloneguid
Copy link
Owner

Thanks, this might help with #502.

@aloneguid aloneguid merged commit 5d72f1e into aloneguid:master Oct 3, 2024
9 checks passed
@aloneguid aloneguid added this to the 5.0.1 milestone Oct 3, 2024
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.

2 participants