T-209: M2.2u — Fix ceoPosts event kind ('ceo_post') and co-publish under <curatedRoot>/events

This commit is contained in:
Studio 2026-12-04 14:15:52 -05:00
parent 436616b343
commit 035d18bfad
15 changed files with 1213 additions and 250 deletions

View file

@ -384,7 +384,7 @@ describe('pure DuckDB query planners — exact SQL and bound parameters', () =>
expect(kinds).toEqual(['filing', 'earnings', 'filing']);
expect(withListings.sql).toBe(
'SELECT e.listing_id, epoch_ms(e.ts) AS ts, epoch_ms(e.known_at) AS known_at, e.known_at_source, e.kind, e.subtype, e.payload_json ' +
`FROM read_parquet('${CURATED_ROOT}/events/year=*/part.parquet', hive_partitioning = true) AS e ` +
`FROM read_parquet('${CURATED_ROOT}/events/year=*/*.parquet', hive_partitioning = true) AS e ` +
'WHERE e.kind IN (?, ?) AND e.listing_id IN (?, ?) AND e.ts >= ? AND e.ts <= ? AND e.known_at <= ? ' +
'ORDER BY e.listing_id ASC, e.ts ASC, e.kind ASC, e.subtype ASC, e.payload_json ASC, e.known_at ASC, e.known_at_source ASC'
);
@ -408,7 +408,7 @@ describe('pure DuckDB query planners — exact SQL and bound parameters', () =>
);
expect(withoutListings.sql).toBe(
'SELECT e.listing_id, epoch_ms(e.ts) AS ts, epoch_ms(e.known_at) AS known_at, e.known_at_source, e.kind, e.subtype, e.payload_json ' +
`FROM read_parquet('${CURATED_ROOT}/events/year=*/part.parquet', hive_partitioning = true) AS e ` +
`FROM read_parquet('${CURATED_ROOT}/events/year=*/*.parquet', hive_partitioning = true) AS e ` +
'WHERE e.kind IN (?) AND e.ts >= ? AND e.ts <= ? AND e.known_at <= ? ' +
'ORDER BY e.listing_id ASC, e.ts ASC, e.kind ASC, e.subtype ASC, e.payload_json ASC, e.known_at ASC, e.known_at_source ASC'
);