You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Teng Peng (JIRA)" <ji...@apache.org> on 2018/05/16 11:49:00 UTC
[jira] [Commented] (BEAM-3399) Documentation wrong for Session
Windows (Python SDK)
[ https://issues.apache.org/jira/browse/BEAM-3399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16477281#comment-16477281 ]
Teng Peng commented on BEAM-3399:
---------------------------------
It seems this issue is resolved. "Sessions.withGapDuration(Duration.*standardMinutes*(10)))"
> 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
(v7.6.3#76005)