You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ralf Hein (JIRA)" <ji...@apache.org> on 2017/12/28 23:40:00 UTC
[jira] [Created] (BEAM-3399) Documentation wrong for Session
Windows (Python SDK)
Ralf Hein created BEAM-3399:
-------------------------------
Summary: Documentation wrong for Session Windows (Python SDK)
Key: BEAM-3399
URL: https://issues.apache.org/jira/browse/BEAM-3399
Project: Beam
Issue Type: Bug
Components: examples-python
Affects Versions: 2.2.0
Reporter: Ralf Hein
Assignee: Ahmet Altay
Priority: Minor
Fix For: Not applicable
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 ...
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)