mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 12:21:02 +01:00
1a6207d791
* Upload static cohort using CSV, closes #2868 * fix tests * Fix tests * Fix e2e test * Avoid double inserts * Speed up query * Move to params * fix tests * Use JSON instead of protobuf * unused import * produce instead of produce_proto * Insert directly into clickhouse, no need for kafka * a few quick fixes * insert in batch to clickhouse * test SQLi since we can't really trust what we are inserting * Extra check for duplicates Co-authored-by: James Greenhill <fuziontech@gmail.com>
8 lines
185 B
Python
8 lines
185 B
Python
from infi.clickhouse_orm import migrations
|
|
|
|
from ee.clickhouse.sql.person import PERSON_STATIC_COHORT_TABLE_SQL
|
|
|
|
operations = [
|
|
migrations.RunSQL(PERSON_STATIC_COHORT_TABLE_SQL),
|
|
]
|