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

Documentation wrong for Session Windows (Python SDK)

    XMLWordPrintableJSON

    Details

      Description

      The documentation for setting Session Windows via python SDK is wrong (Section 7.3.3).

      https://beam.apache.org/documentation/programming-guide/#setting-your-pcollections-windowing-function

      It says "time gap of at least 10 minutes" when introducing the example code, but the code actually only sets a duration gap of 10 seconds.

      Reason: The duration needs to be passed in seconds, not minutes. So the example code should read something like this:
      beam.WindowInto(window.Sessions(10*60)))

      Took me quite some time to figure this out ...

        Attachments

          Activity

            People

            • Assignee:
              altay Ahmet Altay
              Reporter:
              ralfhein Ralf Hein
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: