Au-Miner opened a new pull request, #30071: URL: https://github.com/apache/flink/pull/30071
## What is the purpose of the change Fix missing updates in streaming Top-N queries that select a rank range with an offset and omit the rank number from the output. [FLINK-41618](https://issues.apache.org/jira/browse/FLINK-41618) ## Brief change log - Set the outgoing changelog kind on a reusable `JoinedRowData` so emitting a change preserves the kind of rows retained in rank state. - Reuse the rank field when the rank number is projected. Use an empty right-hand row when it is omitted. ## Verifying this change On Apache Flink master at `b1f051d09c4`, the regression test for ranks 2 and 3 emitted six of the ten expected changelog records. With this change, both retractions emit the expected updates with object reuse on and off. Maven verification and Spotless passed for `flink-table-runtime` and `flink-table-planner`. All 96 applicable cases in the five rank operator test classes passed, including binary-row retractions with RocksDB and stored-row checks for append-only and updatable Top-N. The harness skipped 53 unsupported async-state combinations. SQL integration coverage included `RankITCase` and `WindowRankITCase`. ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no - The serializers: no - The runtime per-record code paths (performance sensitive): yes - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no - The S3 file system connector: no ## Documentation - Does this pull request introduce a new feature? no - If yes, how is the feature documented? not applicable --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes Generated-by: OpenAI Codex CLI 0.169.1 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
