-
Notifications
You must be signed in to change notification settings - Fork 19
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
How to bytes.pbTo[CaseClassWithMoreThan22Columns]? #23
Comments
I doubt that the number of field is the problem here. I think that you have one (or several) fields that are not serialisable (from pbdirect's perspective at least). |
All of the fields in my case class are of String, Long, Int and Double. Let me try removing again a few of them at a time to see if the 22 columns limit is it. Thanks. |
It turns out to be not the number of columns as you suspect. I do have this:
i do get stackoverflow error when i have 31 fields:
|
I am using scala 2.12.6 and I do have eight gigs for my Intellij. Thanks for your help. |
@btlines is there any chance you have looked at this error? Thanks for your help. |
Sorry for the late reply but I'm struggling to keep up with all these projects. |
Thank you for your help. Can you elaborate on what you think could be done? Let’s say the case class is what I have at the moment. Thanks again. |
What I mean is that your case class is like a long list of fields and the implicit resolution is resolving these fields one by one:
The idea is that we can resolve several fields into a single phase:
I'll try to create a PR later tonight to see if it works ... |
When I do have to serialize and deserialize case class with more than 22 columns, it just complains that there is no implicit defined. Is there a way around this? Thanks for your help.
The text was updated successfully, but these errors were encountered: