Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,16 @@ private String windowToString(BoundedWindow window) {
}
if (window instanceof IntervalWindow) {
IntervalWindow iw = (IntervalWindow) window;
return String.format("%s-%s", iw.start().toString(), iw.end().toString());
// Use ISO-8601 format but replace colons with underscores for Windows compatibility
// since colons are illegal characters in Windows file paths.
String startStr = iw.start().toString();
String endStr = iw.end().toString();
String osName = System.getProperty("os.name");
if (osName != null && osName.startsWith("Windows")) {
startStr = startStr.replace(':', '_');
endStr = endStr.replace(':', '_');
}
return String.format("%s-%s", startStr, endStr);
}
return window.toString();
}
Expand Down
Loading