You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/11/03 13:49:00 UTC

[jira] [Work logged] (BEAM-3736) Add SetUp() and TearDown() for CombineFns

     [ https://issues.apache.org/jira/browse/BEAM-3736?focusedWorklogId=506811&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-506811 ]

ASF GitHub Bot logged work on BEAM-3736:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Nov/20 13:48
            Start Date: 03/Nov/20 13:48
    Worklog Time Spent: 10m 
      Work Description: kamilwu commented on pull request #13048:
URL: https://github.com/apache/beam/pull/13048#issuecomment-721081207






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 506811)
    Time Spent: 9h  (was: 8h 50m)

> Add SetUp() and TearDown() for CombineFns
> -----------------------------------------
>
>                 Key: BEAM-3736
>                 URL: https://issues.apache.org/jira/browse/BEAM-3736
>             Project: Beam
>          Issue Type: Improvement
>          Components: beam-model, sdk-py-core
>            Reporter: Chuan Yu Foo
>            Assignee: Kamil Wasilewski
>            Priority: P3
>          Time Spent: 9h
>  Remaining Estimate: 0h
>
> I have a CombineFn that has a large amount of state that needs to be loaded once before it can add_input or merge_combiners (for example, the CombineFn might load up a large lookup table used for combining). 
> Right now, to initialise this state, for each of the methods, I check if the state has already been initialised, and if not, I initialise it. It would be nice if CombineFn provided a SetUp() method that is called once to initialise this state (and a corresponding TearDown() method to clean up this state if necessary).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)