Closed Pragmateek closed 1 month ago
It's a bug in caching, I was using single cache for read schemas and write schemas, so if you read first, readable schema has read-only property and sets in the cache, which is then used in writer incorrectly. Please try -pre.4
version.
Thanks for the fix. It's working now, just had to add a field as otherwise it would have nothing to serialize.
using Parquet.Serialization;
using var ms = new MemoryStream();
await ParquetSerializer.SerializeAsync([new A()], ms);
ms.Seek(0, SeekOrigin.Begin);
var a = (await ParquetSerializer.DeserializeAsync<A>(ms)).Single();
Console.WriteLine(a.N);
class A
{
public int Phony { get; set; }
public int N => 1;
}
Issue description
Hello,
By default, when deserializing, Parquet.Net tries to set readonly properties which of course raises a LINQ Expression exception:
How to make Parquet.Net read them when serializing and ignore them when deserializing?
Thanks in advance,
Mickael