[pull] master from apache:master - #596
Merged
Merged
Conversation
* 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )