You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/07/25 00:13:00 UTC

[jira] [Updated] (SPARK-58342) Add unit tests for the SCD1 AutoCDC auxiliary table spec

     [ https://issues.apache.org/jira/browse/SPARK-58342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated SPARK-58342:
-----------------------------------
    Labels: pull-request-available  (was: )

> Add unit tests for the SCD1 AutoCDC auxiliary table spec
> --------------------------------------------------------
>
>                 Key: SPARK-58342
>                 URL: https://issues.apache.org/jira/browse/SPARK-58342
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Declarative Pipelines
>    Affects Versions: 5.0.0
>            Reporter: Andreas Neumann
>            Priority: Major
>              Labels: pull-request-available
>
> AutoCdcAuxiliaryTable.buildScd1AuxiliaryTableSpecFor had no focused unit test: its behavior was only exercised indirectly via higher-level pipeline suites. SPARK-58320 added a dedicated AutoCdcScd1AuxiliaryTableSpecSuite-style suite for the SCD2 spec builder (AutoCdcScd2AuxiliaryTableSpecSuite); this adds the parallel coverage for SCD1.
> The new AutoCdcScd1AuxiliaryTableSpecSuite resolves a real SCD1 AutoCDC graph and asserts the derived auxiliary-table spec:
> - the schema is exactly the key columns plus the CDC metadata column (no user data columns, no SCD2 framework columns) -- SCD1 aux stores per-key tombstones, not full rows;
> - the CDC metadata column uses the SCD1 metadata struct schema and is non-null;
> - the spec records ScdType.Type1, the key column names (property + expectedKeyFields), and the correct identifiers;
> - composite keys are all carried through.
> Test-only change; no production code is modified.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org