0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 00:46:45 +01:00
posthog/ee/idl/event.avro
Marius Andra dd7e38c5b5
Clickhouse Elements Dedup (based on master) (#1698)
* Use ReplacingMergeTree for elements, remove element_groups and use elements_hash as a virtual "pk"

* remove unused ELEMENT_GROUP_TABLE_SQL

* merge fixes

* use redis cache to avoid writing duplicate elements to clickhouse

* move fakeredis to requirements.txt

* add team_id to cache key

* remove elements_group kafka table references

* add elements_hash to clickhouse element serializer

* fix cache key

* rename few keys

* add test runner to ease pycharm dev

* fix a some mypy errors

* remove typo

Co-authored-by: Eric <eeoneric@gmail.com>
2020-09-24 06:47:28 -04:00

32 lines
530 B
Plaintext

{
"namespace": "com.posthog.ee",
"name": "event",
"type": "record",
"fields" : [
{
"name" : "event",
"type" : "string"
},
{
"name" : "team_id",
"type" : "long"
},
{
"name" : "properties",
"type" : "map",
"values" : "string"
},
{
"name": "timestamp",
"type": "string"
},
{
"name": "distinct_id",
"type": "string"
},
{
"name": "elements_hash",
"type": "string"
}
]
}