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
* Add OrderedListState support in Go SDK
The Go SDK stateful DoFn API was missing OrderedListState, the only
state type already supported in Java and Python but absent from the Go
plumbing. This adds the missing pieces.
- state.OrderedList[T] with Add, Read, ReadRange, Clear, ClearRange
operating on int64 sort keys
- Provider interface wired through exec, graphx translate, and the
harness state manager to the Fn API beam:coder:ordered_list_state:v1
URN
- Unit tests (state, userstate, sideinput) and integration tests against
the prism runner
Relates to the following issues.
- #20510 tracking issue for Go SDK state & timer support
(closed, but ordered list was not included)
- #22736 the original "Implement State in Go" task (closed with
Value/Bag/Combining only)
- #18493 open, tracks full portable user state coverage including
ordered list
- #25894 open, composite state proposal that explicitly depends on
ordered list as a primitive
* Add OrderedListState documenation and examples for Go
Documentation snippet in the programming guide, standalone example
pipeline, and CHANGES.md entry.
* Run go fmt
* Drop accidentally added URN
* Rename TimestampedValue to OrderedListValue
OrderedListValue will make the connection to the state type clearer,
since it is largely referencing the sort key as a generic sort key.
* Update CHANGES to reference the PR
Since the is no clear issue for this particular change, the PR is
referenced instead.
* Reformat the CHANGES entry
Add back a ) that was dropped, prefix with (Go) following existing
entries and put directly after existing entries.
* pull -> issues
* Filter TestOrderedListState for unsupported runners
Runners that lack full state support (direct, portable, flink, samza,
spark) may fail the new integration test. Add it to their filter lists
so presubmit and postcommit skip it on those runners, matching the
existing pattern for other state tests.
---------
Co-authored-by: Hannes Gustafsson <hnngstfssn@gmail.com>
Co-authored-by: Robert Burke <lostluck@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGES.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,11 @@
69
69
70
70
## New Features / Improvements
71
71
72
+
* (Python) Added exception chaining to preserve error context in CloudSQLEnrichmentHandler, processes utilities, and core transforms ([#37422](https://github.com/apache/beam/issues/37422)).
73
+
* (Python) Added a pipeline option `--experiments=pip_no_build_isolation` to disable build isolation when installing dependencies in the runtime environment ([#37331](https://github.com/apache/beam/issues/37331)).
74
+
* (Go) Added OrderedListState support to the Go SDK stateful DoFn API ([#37629](https://github.com/apache/beam/issues/37629)).
72
75
* Added support for large pipeline options via a file (Python) ([#37370](https://github.com/apache/beam/issues/37370)).
76
+
* X feature added (Java/Python) ([#X](https://github.com/apache/beam/issues/X)).
73
77
* Supported infer schema from dataclass (Python) ([#22085](https://github.com/apache/beam/issues/22085)). Default coder for typehint-ed (or set with_output_type) for non-frozen dataclasses changed to RowCoder. To preserve the old behavior (fast primitive coder), explicitly register the type with FastPrimitiveCoder.
74
78
* Updates minimum Go version to 1.26.1 ([#37897](https://github.com/apache/beam/issues/37897)).
75
79
* (Python) Added image embedding support in `apache_beam.ml.rag` package ([#37628](https://github.com/apache/beam/issues/37628)).
0 commit comments