0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
posthog/ee/clickhouse/migrations
Tim Glaser 1a6207d791
Upload static cohort csv (#2932)
* 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>
2021-01-15 11:19:31 +01:00
..
__init__.py first chunk of clickhouse framework (#1613) 2020-09-08 16:12:27 -07:00
0001_initial.py Stability & dev experience improvements (#2152) 2020-11-02 14:55:20 +00:00
0002_events_materialized.py MV -> View for events_with_array_props_view and remove EVENT_PROP_TABLE_SQL (#2766) 2020-12-15 10:59:28 -08:00
0003_person.py Stability & dev experience improvements (#2152) 2020-11-02 14:55:20 +00:00
0004_kafka.py Stability & dev experience improvements (#2152) 2020-11-02 14:55:20 +00:00
0006_session_recording_events.py Stability & dev experience improvements (#2152) 2020-11-02 14:55:20 +00:00
0007_static_cohorts_table.py Upload static cohort csv (#2932) 2021-01-15 11:19:31 +01:00