danny0405 opened a new pull request, #20781: URL: https://github.com/apache/hudi/pull/20781
### Describe the issue this Pull Request addresses Closes #20407. The source recovery implementation in #20516 and the #20406 prerequisite are now merged. This completes chaining acceptance through the real Spark pipelines CLI and Connect server. ### Summary and Changelog - Add COW/MOR CLI tests for wildcard chaining, unique target metadata fields and an explicitly computed boolean delete marker. Verify an unrelated key survives and the deleted key stays absent on restart. - Extend source-safety acceptance to rebuild the whole graph with `--full-refresh-all`, then verify exact rows and unchanged timelines on restart. - Enable metadata by default and replace Python asserts with checks that remain active under optimization. - Document how this coverage combines with the merged source regressions for reader-option precedence, expired history, resets/recreation and clustering. Preserve the documented Spark 4.1 graph-internal reader-option limitation and latest-state/hard-delete boundaries. Validation on Spark 4.1.1 / Scala 2.13 / JDK 17: - Reactor bundle package, style and license checks passed. - `TestStreamingSource`, `TestStreamSourceReadByStateTransitionTime` and `TestHoodieSparkConnectPipelines`: **44 passed**, no failures or cancellations. - Separate-server COW and MOR `source_safety_acceptance.py` runs passed with metadata enabled and `PYTHONOPTIMIZE=1`: exact rows, unchanged restart, actionable reset failure without downstream commits, coordinated CLI full refresh and unchanged rebuilt restart. - Python compilation and `git diff --check` passed. ### Impact Completes the existing single-writer chaining acceptance using current purge-style refresh. The explicit delete marker is tested as flow input; latest-state upstream reads still do not propagate hard deletes. ### Risk Level low — Changes are integration tests and documentation. Both table types passed the JVM suites and isolated CLI/Connect scenarios. Added CLI cases use the existing bounded process lifecycle. ### Documentation Update Updated `SOURCE_SAFETY.md` and `ACCEPTANCE.md` with the wildcard/delete-marker coverage, coordinated full-refresh checks and runnable optimized-Python commands. No new runtime feature requires a website change. ### Contributor's checklist - [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [x] Enough context is provided in the sections above - [x] Adequate tests were added if applicable -- 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]
