You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/07/01 16:51:23 UTC

[GitHub] [beam] Abacn commented on issue #22124: [Bug]: unit test apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_fail_early_bad_schema fails locally

Abacn commented on issue #22124:
URL: https://github.com/apache/beam/issues/22124#issuecomment-1172537710

   The difference happens to the caused by the branching [here]( https://github.com/apache/beam/blob/680ed5b3a49990e2de0730b49233dfe22cfe9b8f/sdks/python/apache_beam/typehints/schemas.py#L301)
   
   If running pytest with the single test, user_type is None, and the try in the if clause raises with schema printed, which passed the assertion.
   If running pytest with the whole RowCoderTest, user_type is not None and the next if clause is not executed. typing_from_runner_api returned successfully and the Exception is raised much later, in [here](https://github.com/apache/beam/blob/680ed5b3a49990e2de0730b49233dfe22cfe9b8f/sdks/python/apache_beam/coders/row_coder.py#L179), without schema printed.


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org