harshilv17 commented on issue #21174:
URL: https://github.com/apache/beam/issues/21174#issuecomment-7328324241

   This still reproduces on master. PAssert's `CheckRelationAgainstExpected` 
encodes the expected values with the actual PCollection's coder and decodes 
them before comparing, so an expected `Row` comes back with the actual schema 
and differing field names are lost. #18631 looks like the same round-trip. My 
proposed fix: decode right after encoding and, if the result no longer equals 
the original expected value, fail with an error that points at the lossy coder. 
This will make some tests that pass today by accident start failing, so I'd 
like to agree on the approach before opening a PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to