Skip to content

[pull] master from apache:master - #596

Merged
pull[bot] merged 3 commits into
section9-lab:masterfrom
apache:master
Aug 10, 2026
Merged

[pull] master from apache:master#596
pull[bot] merged 3 commits into
section9-lab:masterfrom
apache:master

Conversation

@pull

@pull pull Bot commented Aug 10, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

SreeramaYeshwanthGowd and others added 3 commits August 10, 2026 07:39
* Add Sample.Any to the Python SDK to match Java's Sample.any

Python only had Sample.FixedSizeGlobally, which runs a uniform reservoir
sample and returns a single list. Add Sample.Any, the equivalent of Java's
Sample.any, which returns up to n arbitrary elements as a PCollection without
the random sampling cost. If the input has fewer than n elements, all are
returned. Includes unit tests on the DirectRunner and a CHANGES.md entry.

Fixes #18552

* Reject negative n in Sample.Any

Match Java's Sample.any, which rejects a negative limit at construction
time. Add a regression test.

* Add explicit type hints to the FlatMap in Sample.Any

Address review feedback: declare with_input_types(list[T]) and
with_output_types(T) on the FlatMap that flattens the combiner's output.

---------

Co-authored-by: Jack McCluskey <34928439+jrmccluskey@users.noreply.github.com>
…ava 21 compatibility (#39658)

* Fix mobile gaming release validation background process cleanup for Java 21 compatibility

In Java 20+, Thread.stop() unconditionally throws UnsupportedOperationException.
This caused mobile gaming validation scripts to fail when stopping background
injector and leaderboard threads, leaving the child processes running as orphans
and causing the nightly snapshot validation workflow to hang and time out at 6 hours.

This change introduces Process-based background execution and cleanup in TestScripts
to properly terminate background processes across Java versions.

* Fix release validation parameter defaults for workflow dispatch

* Add required JVM add-opens flags for Spark quickstart on Java 17/21

* Modify RELEASE input description and default value

Updated the default release version and modified the description for the RELEASE input.

* Check background process exit status and clean up tables between runs

* Use bounded retry loops when checking BigQuery tables

* Address review feedback: add waitFor to stopAllBackgroundProcesses, deduplicate _mvn logic, trim and quote classpath

* Undo BeamModulePlugin changes
@pull pull Bot locked and limited conversation to collaborators Aug 10, 2026
@pull pull Bot added the ⤵️ pull label Aug 10, 2026
@pull
pull Bot merged commit d6a865d into section9-lab:master Aug 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants