-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Protos with nested extensions fail with Task not serializable #284
Comments
Thanks for reporting and for providing a reproducible example. The fix indeed makes |
that's great, thanks for the quick fix! |
hi, do you have a rough timeline for the next ScalaPB release? In the meantime, do you publish snapshots? |
Hi, |
And yes - there are snapshots here: https://oss.sonatype.org/content/repositories/snapshots/com/thesamet/scalapb/ |
That's great, thanks! One more question, do you have an approximate timeline for the next release of the Thanks again! |
Hi @jckegelman , there are no changes in sparksql-scalapb relevant to this issue. Doesn't 1.0.1 work for you? |
oh, right, I think that should work. Sorry, just went through dependency hell trying to upgrade other packages but I believe you are correct in that we can depend on the latest ScalaPB |
confirmed, that works, thanks again! |
Hi, I am running into the following error:
when running this code:
with these proto definitions:
Full stack trace:
It looks like adding a nested extension adds that field to the "outer" object (
Baz
in the example above) so somewhere in the schema encoding it is trying to serializeBaz.bar
, which is ascalapb.GeneratedExtension
, which extendsscalapb.lenses.Lens
:https://github.com/scalapb/ScalaPB/blob/aadabd3ab4c49b9f0dee14a42b1153300eaccc97/scalapb-runtime/src/main/scala/scalapb/GeneratedExtension.scala#L6
which is not
Serializable
.I tried various incantations to avoid serialization, e.g. by wrapping
Baz
in a staticobject
, but couldn't get it to work. I've submitted a PR with a reproducible example: #283Do you have any suggested workarounds or would it be possible to make
Lens
Serializable
?The text was updated successfully, but these errors were encountered: