field_id support in Class Serialization #663
tliu1-illumina
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing Parquet files for data lakes and need to set the field_id metadata. Seems like there is current support for this by setting
DataField.FieldId.However, I would much prefer to use the higher level Class Serialization vs having to do it the low level way which is getting quite messy.
It would be great if we can add attributes to the fields to specify FieldId in the class, and class serialization will understand it. For example:
Seems like this can be done in the
ConstructDataField()function https://github.com/aloneguid/parquet-dotnet/blob/master/src/Parquet/Serialization/TypeExtensions.cs#L142-L193What do you think? Will this work? Would be happy to do a PR.
Beta Was this translation helpful? Give feedback.
All reactions