Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame.ofRecords creates duplicated columns for F# records #569

Open
gbtb opened this issue Feb 12, 2025 · 0 comments
Open

Frame.ofRecords creates duplicated columns for F# records #569

gbtb opened this issue Feb 12, 2025 · 0 comments

Comments

@gbtb
Copy link

gbtb commented Feb 12, 2025

Basically, due to how F# compiler lowers record fields to IL, for each field we will have both Property and Field with @ suffix generated.
For example, https://sharplab.io/#v2:DYLgZgzgNAJiDUAfALgTwA4FMAEAVA9ugJYDGAIphCQE5HrJH4B22AvNgN4CwAUNv9gDKmagDcRIbBGS0mAc14C8hUpOmyFPAL5A.

The code in

let getMemberProjections (recdTy:System.Type) =
doesn't account for that, and it causes creation of duplicated columns for a record.

getExpandableFields tries to filter out non-public properties, but for some reason it doesn't work with compiler-generated internal fields@, so ,I guess, it should probably additionally filter out fields with [CompilerGenerated] attribute on them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant