aloneguid / parquet-dotnet

Fully managed Apache Parquet implementation
https://aloneguid.github.io/parquet-dotnet/
MIT License
636 stars 153 forks source link

Pass property attributes down to list data field #559

Closed agaskill closed 1 month ago

agaskill commented 1 month ago

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 commented 1 month ago

Thanks, this might help with #502.