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

@ -68,7 +68,7 @@ class MarketDataStore:
return f"{self.curated_root}/bars_1d/year=*/part.parquet"
def _events_glob(self) -> str:
return f"{self.curated_root}/events/year=*/part.parquet"
return f"{self.curated_root}/events/year=*/*.parquet"
def _shorts_path(self) -> str:
return f"{self.curated_root}/shorts/part.parquet"
@ -250,7 +250,7 @@ class MarketDataStore:
SELECT listing_id, ts, known_at, known_at_source, kind, subtype, payload_json
FROM read_parquet('{self._events_glob()}', hive_partitioning = true)
WHERE {' AND '.join(where)}
ORDER BY listing_id ASC, ts ASC
ORDER BY listing_id ASC, ts ASC, kind ASC, subtype ASC, payload_json ASC, known_at ASC, known_at_source ASC
"""
return self._con.execute(sql, params).pl()