0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/ee/clickhouse/materialized_columns
Karl-Aksel Puulmann 10a26d3e17
Automatically create materialized properties (#5744)
* Avoid naming collisions when materializing columns

1. Prefix person properties differently. Mixing them up can break
ambigious column issues
2. When name already exists, suffix with random junk :)

* Implement analyze.py

* Add `suggested_columns_to_materialize`

* Add code to backfill a materialized column

* Add tests for backfilling data

* Cleanup

* Add tests for analyze

* WIP: Crontab for materializing columns

* Nooped task for materializing properties

* Use mutations_sync=0 for column tests

* Add comment
2021-08-26 18:48:57 +03:00
..
test Automatically create materialized properties (#5744) 2021-08-26 18:48:57 +03:00
__init__.py
analyze.py Automatically create materialized properties (#5744) 2021-08-26 18:48:57 +03:00
columns.py Automatically create materialized properties (#5744) 2021-08-26 18:48:57 +03:00
util.py Automatically create materialized properties (#5744) 2021-08-26 18:48:57 +03:00