-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(persons-on-events): Add Kafka table and materialized view for di…
…stinct ID overrides
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
posthog/clickhouse/migrations/0054_add_person_distinct_id_overrides_consumer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from posthog.clickhouse.client.migration_tools import run_sql_with_exceptions | ||
from posthog.models.person.sql import ( | ||
KAFKA_PERSON_DISTINCT_ID_OVERRIDES_TABLE_SQL, | ||
PERSON_DISTINCT_ID_OVERRIDES_MV_SQL, | ||
) | ||
|
||
operations = [ | ||
run_sql_with_exceptions(KAFKA_PERSON_DISTINCT_ID_OVERRIDES_TABLE_SQL()), | ||
run_sql_with_exceptions(PERSON_DISTINCT_ID_OVERRIDES_MV_SQL), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters