[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to