-
Notifications
You must be signed in to change notification settings - Fork 514
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
Support of custom Coders #319
Comments
Also is it possible to provide code for |
Yes you are right, I wanted to simplify the code example, and I removed the The Here is the code, I only removed some fields in
The
|
@ElPicador I'm having trouble reproducing this; when I use this code in a test, I can see that on an |
@andrewsmartin: Sorry, my mistake. It is indeed We haven't tried it in tests, only directly on Dataflow. And when profiling the job (for more than 1 hour), we do not see the class |
I tried to override the fallback coder with, and I still see I might do something bad. Is there an example of using specific coders somewhere? I tried with this.
|
After some testing, it works locally but not on Dataflow :/ |
@ElPicador that's interesting - perhaps there are differences to the coder inference process when using the Direct / InProcessPipelineRunner vs DataflowRunner but that doesn't seem likely. How are you submitting your job? And how are you checking what Coders are being used on Dataflow? |
I'm submitting my job with On local I'm checking with a breakpoint. |
@ElPicador ok, so I just tried with your "null" coder provider, and I actually get back Above when it tries to get the default coder, because your fallback coder is |
I did try with a non null coder. And it works locally but not on dataflow |
@ElPicador You're still talking about setting the fallback coder, right? I'm still unable to reproduce after changing the fallback coder to be your
I then looked at the worker logs for the job and saw that LogCoder was indeed being used. |
My answers were not clear enough. I was talking about using only |
@ElPicador I am unable to reproduce this. What exactly is the I added logging statements to |
It's an option to profile the jobs, it's official see: GoogleCloudPlatform/DataflowJavaSDK#72 I'll continue to test on my side then |
I can't reproduce my issue, I'm closing this. And sorry for the noise. |
It seems, with scio 0.2.6, that custom coders are not supported. I did:
And when profiling my job, I don't see
LogCoder
, only the defaultKryoAtomicCoder
The text was updated successfully, but these errors were encountered: