This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
posthog
Watch
0
Star
0
Fork
0
You've already forked posthog
mirror of
https://github.com/PostHog/posthog.git
synced
2024-12-01 04:12:23 +01:00
Code
Issues
Releases
Activity
cecb7510b8
posthog
/
ee
/
clickhouse
/
models
/
clickhouse.py
6 lines
104 B
Python
Raw
Normal View
History
Unescape
Escape
Replace uuid4 and uuid1_macless with UUIDT (#1726) * Replace uuid1_macless with UUIDT * Add machine_component * Update comment * Remove machine_component in favor of larger time_component * Update UUIDT docstring
2020-09-29 15:39:18 +02:00
from
posthog
.
models
.
utils
import
UUIDT
Clickhouse process event (#1652) * generate clickhouse uuid script * set CLICKHOUSE_SECURE=False by default if running in TEST or DEBUG * convert person_id to UUID, make adding `person_id` optional, add distinct_ids already in the `create_person` function * Fix test_process_event_ee.py, remove all calls to Person.objects.* * add back util * fix broken imports * improve process_event test clickhouse queries * change property parsing * indentation wrong missing calls * uuid4 instead of call to CH Co-authored-by: Eric <eeoneric@gmail.com> Co-authored-by: James Greenhill <fuziontech@gmail.com>
2020-09-15 21:40:35 +02:00
def
generate_clickhouse_uuid
(
)
-
>
str
:
Replace uuid4 and uuid1_macless with UUIDT (#1726) * Replace uuid1_macless with UUIDT * Add machine_component * Update comment * Remove machine_component in favor of larger time_component * Update UUIDT docstring
2020-09-29 15:39:18 +02:00
return
str
(
UUIDT
(
)
)
Copy Permalink