Thanks Anthony -- I was wrong here when I said that PCollectionViews don't
need to be serializable ; your original report is great and your new one is
better.

Great to catch this issue now!

On Thu, May 11, 2017 at 5:16 PM, Antony Mayi <[email protected]> wrote:

> please find another unit test with more realistic usecase. I am compiling
> it using Java 8 and the stacktrace I get from the testGeneric is attached.
>
> thx,
> a.
>
>
> On Friday, 12 May 2017, 1:52, Thomas Groh <[email protected]> wrote:
>
>
> Hey Antony;
>
> I've tried to update your code to compile in Java 7 and removed the
> SerializableUtils Dan mentioned, and I can't seem to reproduce the issue.
> Can you share more about the specific issue you're having? A stack trace
> would be really helpful.
>
> Thanks,
>
> Thomas
>
> On Thu, May 11, 2017 at 4:42 PM, Dan Halperin <[email protected]> wrote:
>
> Hi Anthony,
>
> I'm a little confused by your code snippet:
>
> SerializableUtils.serializeToB yteArray(
>     input.apply(ParDo.of(new NonGenericOutput<>())).apply(" passing",
> View.asSingleton())
> );
>
> is serializing a PCollectionView object. Those are not necessarily
> serializable and it's not clear that it makes sense to do this at all.
>
> Can you say more about what you're trying to do?
>
> Thanks,
> Dan
>
> On Thu, May 11, 2017 at 4:21 PM, Antony Mayi <[email protected]> wrote:
>
> I tried the 2.0.0rc2 and I started facing weird serialization issue that's
> not been happening on 0.6.0. I am able to reproduce it using the attached
> unit test - see first serialization attempt which is passing ok and second
> one slightly different (transform output type is generic) that's failing
> just on 2.0.0
>
> Can anyone find a way around it? In my real case I depend on generics
> output types.
>
> thanks,
> antony.
>
>
>
>
>
>

Reply via email to