Re: @FieldAccess parameter types not being enforced vs corresponding schema types in Java DoFn

2023-09-18 Thread Reuven Lax via user
Good question - I know it will be enforced at runtime (I think you'll get a ClassCastException if things don't match) but I'd have to check to see if we enforce it at graph-submission time. If we don't have this validation in place, adding it would be an improvement. On Mon, Sep 18, 2023 at 3:04 

@FieldAccess parameter types not being enforced vs corresponding schema types in Java DoFn

2023-09-18 Thread Varun Golani
I've been looking at the following session from the 2019 Beam Summit covering Schema-aware PCollections (18:00 - https://www.youtube.com/watch?v=aRIZXtQiCHw). The specific part of the video mentions that for fields accessed via the @FieldAccess annotation, Beam checks for both the existence of the