Context
In #256 / #257 we replace id_path with (path, segment_code) as the JOIN key in v_ahb_diff. This works for most message types but IFTSTA (21045) has structural path duplicates.
Problem
IFTSTA uses a flat segment group naming scheme (CNI-LOC-CNT-SG15) instead of the hierarchical paths used by other messages. This produces up to 5 duplicate (path, segment_code, qualifier) tuples per Prüfidentifikator — the STS segments under "Grund der Privilegierung nach EnFG" all have the same path.
Impact
- 36 IFTSTA-specific duplicates across all versions (out of 1676 total version/pruefi combinations)
- Non-IFTSTA duplicates exist but are benign (cnt=2 repetitions of identical elements like PARTIN FII "Name des Kontoinhabers" or MSCONS segment_group "Referenzangaben")
Non-IFTSTA duplicates (benign, cnt=2 only)
| Nachricht |
Prüfis |
Segment |
Detail |
| PARTIN |
37000-37014 |
FII |
Two "Name des Kontoinhabers" (D_3192) repetitions under Bankverbindung |
| MSCONS |
13017 |
(segment_group) |
Two "Referenzangaben" segment groups |
| PRICAT |
27002 |
IMD |
Two IMD segments under same path |
These have identical content in both repetitions, so the diff result is still correct even with a false match.
Suggested fix
The IFTSTA path column needs to carry more structural context to be unique. This may need to be addressed in the materialization step where path is computed.
Related: #256, #257
Context
In #256 / #257 we replace
id_pathwith(path, segment_code)as the JOIN key inv_ahb_diff. This works for most message types but IFTSTA (21045) has structural path duplicates.Problem
IFTSTA uses a flat segment group naming scheme (
CNI-LOC-CNT-SG15) instead of the hierarchical paths used by other messages. This produces up to 5 duplicate(path, segment_code, qualifier)tuples per Prüfidentifikator — the STS segments under "Grund der Privilegierung nach EnFG" all have the same path.Impact
Non-IFTSTA duplicates (benign, cnt=2 only)
These have identical content in both repetitions, so the diff result is still correct even with a false match.
Suggested fix
The IFTSTA
pathcolumn needs to carry more structural context to be unique. This may need to be addressed in the materialization step wherepathis computed.Related: #256, #257