T-212: M2.3t — Add --qm-financials-old merge and Option B --from-mongo streaming for M2 collections in curate-etl

This commit is contained in:
Studio 2026-12-05 18:20:50 -05:00
parent f082aac436
commit 58216f7820

View file

@ -1538,7 +1538,7 @@ fn file_mode_single_chunk_shards_match_pure_stage_byte_for_byte() {
}
#[test]
fn file_mode_multi_chunk_shards_match_pure_stage_applied_per_document_chunk() {
fn file_mode_multi_chunk_shards_match_global_pure_stage_byte_for_byte() {
let dir = TempDirGuard::new("qm-bars1m-qa-chunk-bytes");
let mapping_path = write_mapping_tsv(
dir.path(),
@ -1585,14 +1585,17 @@ fn file_mode_multi_chunk_shards_match_pure_stage_applied_per_document_chunk() {
assert_eq!(report.chunks, 6);
assert_eq!(report.max_rows_per_chunk, 1);
assert_eq!(
report.curate_stats.listings_out, 6,
"per-chunk sum, not distinct"
report.curate_stats.listings_out, 2,
"global distinct listings across chunks"
);
assert_eq!(
report.curate_stats.builder.keys_out, 2,
"global distinct keys across chunks"
);
let mapping = load_provider_mapping_table(&mapping_path).unwrap();
let chunks: Vec<&[u8]> = bytes.chunks(doc_len).collect();
let expected = pure_stage_shard_bytes(
&chunks,
&[bytes.as_slice()],
&mapping,
DEFAULT_QM_BARS_1M_MAPPING_SOURCE,
2,