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
schema:
A (System.Int32)
B (System.Double)
A@ (System.Int32)
The columns A and A@ contain duplicated data. The latter seems to come from .field public int32 A@ according to Rider's IL viewer.
% dotnet --version
8.0.401
Failing test
No response
The text was updated successfully, but these errors were encountered:
nodakai
changed the title
[BUG]: breaking change: class serialization: F# records with mutable fields are duped with @ suffix
[BUG]: breaking change: class serialization: mutable fields within F# records are duped with @ suffix
Oct 1, 2024
Hmm maybe F# shouldn't have defined the backing field as public...
Is it possible to add a new field, sth like PropertiesOnly to ParquetSerializerOptions to restore the pre 4.23 behavior?
I can't seem to apply JsonIgnore to the F# compiler-generated backing fields.
Thanks, I need to think about how to do this without impacting performance, as type info is cached at the moment and not discovered on every deserialisation call.
In the meantime you could do something like this:
typeFoo=val mutableprivate_a:intvalB:floatmemberthis.Awith get()= this._a
andset(value)= this._a <- value
aloneguid
changed the title
[BUG]: breaking change: class serialization: mutable fields within F# records are duped with @ suffix
F# class serialization: mutable fields within F# records are duped with @ suffix
Nov 13, 2024
Library Version
4.23.0
OS
macOS 14.6.1 (23G93)
OS Architecture
64 bit
How to reproduce?
<= 4.22.1
>= 4.23.0
The columns
A
andA@
contain duplicated data. The latter seems to come from.field public int32 A@
according to Rider's IL viewer.Failing test
No response
The text was updated successfully, but these errors were encountered: