Repository navigation
Conversation
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41916 +/- ##
============================================
+ Coverage 58.98% 59.00% +0.01%
Complexity 2386 2386
============================================
Files 1137 1137
Lines 171425 171475 +50
Branches 1596 1596
============================================
+ Hits 101121 101179 +58
+ Misses 67733 67725 -8
Partials 2571 2571
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
Assigning reviewers: R: @damccorm added as fallback since no labels match configuration Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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