You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Pablo Estrada (Jira)" <ji...@apache.org> on 2019/09/15 05:12:00 UTC
[jira] [Resolved] (BEAM-3399) Documentation wrong for Session
Windows (Python SDK)
[ https://issues.apache.org/jira/browse/BEAM-3399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pablo Estrada resolved BEAM-3399.
---------------------------------
Resolution: Fixed
> 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
> Labels: starter
> 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
(v8.3.2#803003)