mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 12:21:02 +01:00
46faa8fab2
* refactor: foss move properties to /posthog * refactor: move replication and materializtaion * refactor: move file * refactor: move test and journeys * refactor: move breakdown props * refactor: move query imports * refactor: move more ee dependencies * refactor: restore groupsjoinquery * fix: errors * refactor: no ee.clickhouse dependncies * try import tasks * refactor: move materialization * refactor: change foss split for column optimizer * run black * fix: imports * remove comment * Update snapshots * run black * skip isort * Update snapshots * format * more fixes * refactor(FOSS): split out paths query code (#10378) * refactor: move migrations * refactor: move idl * fix: move more imports * import adjustments * fix: test import * fix: test import * fix: remove restriction * refactor: split out paths query code * refactor: more code splitting * fix: types * refactor(FOSS): Setup such that FOSS is deployable (#10352) * refactor: move migrations * refactor: move idl * fix: move more imports * import adjustments * fix: test import * fix: test import * fix: remove restriction * fix import * refactor: add snapshost * subscription-import * fix: safe import Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
12 lines
509 B
Python
12 lines
509 B
Python
from posthog.models.group.util import get_aggregation_target_field
|
|
from posthog.queries.stickiness.stickiness_event_query import StickinessEventsQuery
|
|
|
|
|
|
class ClickhouseStickinessEventsQuery(StickinessEventsQuery):
|
|
def aggregation_target(self):
|
|
return get_aggregation_target_field(
|
|
self._entity.math_group_type_index,
|
|
self.EVENT_TABLE_ALIAS,
|
|
f"{self.DISTINCT_ID_TABLE_ALIAS if not self._using_person_on_events else self.EVENT_TABLE_ALIAS}.person_id",
|
|
)
|