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

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

                Author: ASF GitHub Bot
            Created on: 03/Jun/22 23:30
            Start Date: 03/Jun/22 23:30
    Worklog Time Spent: 10m 
      Work Description: TheNeuralBit opened a new pull request, #19268:
URL: https://github.com/apache/beam/pull/19268

   This PR adds two new decorators, `@yields_batches` and `@yields_elements`, 
which override the default interpretation for the output of `DoFn.process` and 
`DoFn.process_batch`. These decorators are handled via changes to 
`OutputProcessor` (now renamed to `OutputHandler` for clarity), which branches 
depending on whether batches or elements are expected in the `results` iterable.
   
   Where possible, common logic in `OutputHandler` was extracted into private 
helper methods that can be re-used, the .pxd definition for these methods 
indicates they should be inlined in cython-generated code so they don't affect 
performance.
   
   GitHub Actions Tests Status (on master branch)
   
------------------------------------------------------------------------------------------------
   [![Build python source distribution and 
wheels](https://github.com/apache/beam/workflows/Build%20python%20source%20distribution%20and%20wheels/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
   [![Python 
tests](https://github.com/apache/beam/workflows/Python%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Java 
tests](https://github.com/apache/beam/workflows/Java%20Tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
   
   See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more 
information about GitHub Actions CI.
   




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

            Worklog Id:     (was: 778358)
    Remaining Estimate: 0h
            Time Spent: 10m

> Add @DoFn.yields_batches and @DoFn.yields_elements decorators to override 
> defaults
> ----------------------------------------------------------------------------------
>
>                 Key: BEAM-14293
>                 URL: https://issues.apache.org/jira/browse/BEAM-14293
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-py-core
>            Reporter: Brian Hulette
>            Assignee: Brian Hulette
>            Priority: P2
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to