0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
posthog/ee/clickhouse/queries
Karl-Aksel Puulmann 35813b3b49
Refactor breakdowns to work with materialized person columns (#5807)
* Make breakdown join with person if needed

* Refactor trends to be purely class-based, don't rely on wonky inheritance

* Extract method

* Improve person join behavior

* Remove unneeded parameter

* Mark a function thats always passed as such

* Add test case demonstrating previous non-join case

* Unify two get_breakdown_prop_values methods

* Add test for materialized columns

* Simplify trends breakdown query

* Unify _breakdown_prop_params for events/person breakdowns

* Use shared column_optimizer

* Typing fix

* Cleanup

* Code style cleanup

* Code style cleanup

* Fix param ordering
2021-09-07 09:05:13 +03:00
..
funnels Refactor breakdowns to work with materialized person columns (#5807) 2021-09-07 09:05:13 +03:00
paths Treat URLs with trailing slash as equivalent in Paths computation, and some bug fixes (#5763) 2021-08-27 15:28:01 -04:00
sessions
test Refactor breakdowns to work with materialized person columns (#5807) 2021-09-07 09:05:13 +03:00
trends Refactor breakdowns to work with materialized person columns (#5807) 2021-09-07 09:05:13 +03:00
__init__.py
breakdown_props.py Refactor breakdowns to work with materialized person columns (#5807) 2021-09-07 09:05:13 +03:00
clickhouse_paths.py
clickhouse_retention.py
clickhouse_session_recording.py
clickhouse_stickiness.py
column_optimizer.py Refactor breakdowns to work with materialized person columns (#5807) 2021-09-07 09:05:13 +03:00
event_query.py
person_query.py Refactor breakdowns to work with materialized person columns (#5807) 2021-09-07 09:05:13 +03:00
util.py