Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-13720

TextIO.write .withWindowedWrites does not work on windows

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • 2.35.0
    • None
    • io-java-text

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            Gol Kaj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: