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/06/03 17:12:52 UTC

[GitHub] [beam] kennknowles opened a new issue, #18247: Initial size estimation fails for mobile gaming examples for DataflowRunner when run in Windows

kennknowles opened a new issue, #18247:
URL: https://github.com/apache/beam/issues/18247

   This happens for pipelines user_score.py and hourly_team_score.py
   
   Jobs complete successfully but initial size estimation fails with following error.
   
   INFO:root:Could not estimate size of source <apache_beam.io.textio._TextSource object at 0x03E34FF0\> due to an exception
   : Traceback (most recent call last):
     File "C:\Users\chamikara\pythontest1\rc4_test\env_rc4_1\lib\site-packages\apache_beam\runners\dataflow\dataflow_runner
   .py", line 554, in run_Read
       transform.source.estimate_size())
     File "C:\Users\chamikara\pythontest1\rc4_test\env_rc4_1\lib\site-packages\apache_beam\internal\gcp\json_value.py", lin
   e 59, in get_typed_value_descriptor
       raise TypeError('Cannot get a type descriptor for %s.' % repr(obj))
   TypeError: Cannot get a type descriptor for 23899840340L.
   
   Seems to be due to a combination of Windows returning Long for type name [1] and SDK not handling long type at [2].
   
   [1] http://stackoverflow.com/questions/22513445/python-handles-long-ints-differently-on-windows-and-unix
   
   [2] https://github.com/apache/beam/blob/master/sdks/python/apache_beam/internal/gcp/json_value.py#L35
   
   
   cc: [~altay]
   
   Imported from Jira [BEAM-2294](https://issues.apache.org/jira/browse/BEAM-2294). Original Jira may contain additional context.
   Reported by: chamikara.


-- 
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.apache.org

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