You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with this library to work with dynamic columns.
Using the untyped serializer, I'm trying to work with complex types.
I want one of the fields to represent a dummy structure, User. It can either be a struct or a class: it's not important as long as I can access its fields.
System.ApplicationException: 'failed to serialise data column 'User/Name
InvalidCastException: Unable to cast object of type 'User' to type 'System.Collections.Generic.IDictionary`2[System.String,System.Object]'.
Am I defining the schema in the wrong way? Or maybe, now that I'm serializing subtypes, I have to use the ParquetRowGroupWriter described in the documentation?
The text was updated successfully, but these errors were encountered:
Issue description
I'm experimenting with this library to work with dynamic columns.
Using the untyped serializer, I'm trying to work with complex types.
I want one of the fields to represent a dummy structure,
User
. It can either be a struct or a class: it's not important as long as I can access its fields.User as a Class
I tried to define
User
as a classI tried defining the
ParquetSchema
like this:and like this:
But, when I run the application, I get the following exception.
User as a Struct
I then tried defining it as a struct:
Again, same exception:
Another approach: use the
StructField
, as described here.Now the schema is well defined, but when serializing an object this way:
I get the following exception:
Am I defining the schema in the wrong way? Or maybe, now that I'm serializing subtypes, I have to use the
ParquetRowGroupWriter
described in the documentation?The text was updated successfully, but these errors were encountered: