Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@
* BigQuery's DATETIME type now maps to Beam logical type org.apache.beam.sdk.schemas.logicaltypes.SqlTypes.DATETIME
* Pandas 1.x is now required for dataframe operations.

## Known Issues

* Non-idempotent combiners built via `CombineFn.from_callable()` or `CombineFn.maybe_from_callable()` can lead to incorrect behavior. ([BEAM-11522](https://issues.apache.org/jira/browse/BEAM-11522)).


# [2.25.0] - 2020-10-23

Expand Down
10 changes: 2 additions & 8 deletions sdks/python/apache_beam/transforms/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,10 +1075,7 @@ def compact(self, accumulator, *args, **kwargs):
return [self._fn(accumulator, *args, **kwargs)]

def extract_output(self, accumulator, *args, **kwargs):
if len(accumulator) == 1:
return accumulator[0]
else:
return self._fn(accumulator, *args, **kwargs)
return self._fn(accumulator, *args, **kwargs)

def default_type_hints(self):
fn_hints = get_type_hints(self._fn)
Expand Down Expand Up @@ -1155,10 +1152,7 @@ def compact(self, accumulator):
return [self._fn(accumulator)]

def extract_output(self, accumulator):
if len(accumulator) == 1:
return accumulator[0]
else:
return self._fn(accumulator)
return self._fn(accumulator)


class PartitionFn(WithTypeHints):
Expand Down