AnishMahto opened a new pull request, #59044: URL: https://github.com/apache/spark/pull/59044
This is a stacked PR. See incremental diff here: https://github.com/AnishMahto/spark/compare/scd1-per-leaf-metadata-schema...scd1-populate-version-map-at-ingest See previous PR in stack here: https://github.com/apache/spark/pull/58973 ### What changes were proposed in this pull request? When processing an incoming microbatch, if ignore-null is enabled for the AutoCDC flow, a non-null version map is populated for every upsert row. Delete rows retain a null version map and are handled as row-wide authorship during later reconciliation. Per the version-map contract documented in `Scd1VersionMap`, the map contains authorship information for every non-key user-data leaf in the target-aligned row. This ticket stamps each upsert independently, using only that row’s values and sequencing value. This PR does not reconcile microbatch version maps with existing auxiliary or target-table state, nor does it reconcile multiple microbatch rows targeting the same key. ### Why are the changes needed? SCD1 ignore-null support. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Unit tests in `Scd1LeafLevelReconciliationSuite`. ### Was this patch authored or co-authored using generative AI tooling? Co-authored with GPT 5.6 Sol -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
