You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kenneth Knowles (Jira)" <ji...@apache.org> on 2022/01/24 20:32:00 UTC

[jira] [Commented] (BEAM-13720) TextIO.write .withWindowedWrites does not work on windows

    [ https://issues.apache.org/jira/browse/BEAM-13720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17481377#comment-17481377 ] 

Kenneth Knowles commented on BEAM-13720:
----------------------------------------

Is the file name not appropriately escaped? Or is there no way of escaping it? The format used is an internet standard so that is pretty nice. But we could probably find a way to replace characters if this is beyond the capability of Windows.

> TextIO.write .withWindowedWrites does not work on windows
> ---------------------------------------------------------
>
>                 Key: BEAM-13720
>                 URL: https://issues.apache.org/jira/browse/BEAM-13720
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-text
>    Affects Versions: 2.35.0
>            Reporter: Kaj
>            Priority: P2
>              Labels: starter
>
> This basic code fails on MS Windows
> .apply(TextIO.write().to("anything")
> .withWindowedWrites()
> .withNumShards(1)
> with
> java.nio.file.InvalidPathException: Illegal char <:> at index 16: anything2021-12-31T23:00:00.000Z....
> because the default FilenamePolicy uses a simple Instant format for Beam Windows that includes ":" which are illegal in MS Windows paths



--
This message was sent by Atlassian Jira
(v8.20.1#820001)