-
Notifications
You must be signed in to change notification settings - Fork 138
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
Add TypedEncoder for shapeless Record. #777
Comments
Hey there; indeed in I don't think that these are bad here, at least work as a sanity check for us. But any improvement PRs are very much welcome. Didn't quite follow a part about the |
@pomadchin voila, adding an experimental PR that adopts 2-stage RecordEncoder derivation. The 1st stage is now also used for 0baf604#diff-dd83f3b1d1a249804b5620473177ce6034efbc5f36b45a9b1ef01283cafd50f9R93 |
it is only an experiment, will need some serious clean up (particularly the scalafmt part) and API revision before it becomes a feature. Ideally, I would like to see schema-changing transformation like
Instead of the old:
|
Since
RecordEncoder
is already converting any product type into shapeless Record:The only thing required is to break it into 2 stages, such that the intermediate HList/Record representation could serve as a more flexible type-level schema, it could even approximate the capability of the abandoned TypedDataFrame
I also realised that i0~i2 are not used in the function body. i2 is important to not accept HNil, but are i0 & i1 necessary?
The text was updated successfully, but these errors were encountered: