You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix silent per-char iteration when DoFn returns str/bytes/dict (#38429)
* Fix silent per-char iteration when DoFn returns str/bytes/dict
* Use %r in error message for correct repr of dict/bytes
* Address review: 'is not allowed' wording, move entry to Breaking Changes
* Address review: check only first output, skip generator DoFns
---------
Co-authored-by: Jack McCluskey <34928439+jrmccluskey@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGES.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@
75
75
## Breaking Changes
76
76
77
77
* (Python) Removed `google-perftools` from the SDK container images. Users who wish to use `--profiler_agent=tcmalloc` should install google-perftools APT package in their custom container images separately ([#39323](https://github.com/apache/beam/issues/39323)).
78
+
*`DoFn.process` returning a `str`, `bytes`, or `dict` (instead of an iterable wrapping one) now raises a `TypeError` rather than silently iterating per-character/byte/key (Python) ([#18712](https://github.com/apache/beam/issues/18712)).
78
79
* (Java) Added `DRAINING` and `DRAINED` states to `PipelineResult`, including runner state mappings and Dataflow update handling ([#39020](https://github.com/apache/beam/issues/39020)).
79
80
80
81
## Deprecations
@@ -129,6 +130,7 @@
129
130
* (Python) Typehints of dataclass fields are honored during type inferences. To restore the behavior of fallback-to-any,
130
131
use pipeline option `--exclude_infer_dataclass_field_type` ([#38797](https://github.com/apache/beam/issues/38797)).
131
132
However fixing forward is recommended.
133
+
* X behavior was changed ([#X](https://github.com/apache/beam/issues/X)).
0 commit comments