tvalentyn opened a new pull request, #41916:
URL: https://github.com/apache/beam/pull/41916

   The default file naming of fileio.WriteToFiles converted window bounds to 
datetime, which only supports years 1 to 9999. Writing elements in windows 
outside of this range failed with "OverflowError: date value out of range".
   
   Such windows are easy to get. GroupByKey and BatchElements (which 
RunInference and Enrichment use) give their outputs in the global window the 
timestamp of the end of the global window, which is in the year 294247.
   
   Format such bounds like the bounds that datetime supports, with the actual 
year, for example 294247-01-09T04:00:00. The Java SDK also names files after 
the actual year of such bounds. Names of files for windows that datetime 
supports don't change.
   
   fixes: #41914
   


-- 
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