Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

43.0 KB
Raw Blame
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`IngestionConsumer error handling should handle explicitly non retriable errors by sending to DLQ 1`] = `
[
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-0>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "user-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-0>",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": {
      "distinct_id": "user-1",
      "dlq_offset": "0",
      "dlq_partition": "1",
      "dlq_reason": "test",
      "dlq_step": "processGroupsStepWrapper",
      "dlq_timestamp": "2025-01-01T00:00:00.000Z",
      "dlq_topic": "test",
      "event": "$pageview",
      "now": "2025-01-01T00:00:00.000Z",
      "token": "THIS IS NOT A TOKEN FOR TEAM 2",
      "uuid": "<REPLACED-UUID-1>",
    },
    "key": "THIS IS NOT A TOKEN FOR TEAM 2:user-1",
    "topic": "events_plugin_ingestion_dlq_test",
    "value": {
      "data": "{"distinct_id":"user-1","uuid":"<REPLACED-UUID-1>","ip":"127.0.0.1","site_url":"us.posthog.com","now":"2025-01-01T00:00:00.000Z","event":"$pageview","properties":{"$current_url":"http://localhost:8000"}}",
      "distinct_id": "user-1",
      "ip": "127.0.0.1",
      "now": "2025-01-01T00:00:00.000Z",
      "token": "THIS IS NOT A TOKEN FOR TEAM 2",
      "uuid": "<REPLACED-UUID-1>",
    },
  },
]
`;

exports[`IngestionConsumer general overflow force overflow should force events with matching token:distinct_id to overflow: force overflow messages 1`] = `
[
  {
    "headers": {
      "distinct_id": "team1-user",
      "event": "$pageview",
      "now": "2025-01-01T00:00:00.000Z",
      "redirect-step": "applyEventRestrictionsStep",
      "redirect-timestamp": "2025-01-01T00:00:00.000Z",
      "token": "THIS IS NOT A TOKEN FOR TEAM 2",
      "uuid": "<REPLACED-UUID-0>",
    },
    "key": "THIS IS NOT A TOKEN FOR TEAM 2:team1-user",
    "topic": "events_plugin_ingestion_overflow_test",
    "value": {
      "data": "{"distinct_id":"team1-user","uuid":"<REPLACED-UUID-0>","ip":"127.0.0.1","site_url":"us.posthog.com","now":"2025-01-01T00:00:00.000Z","event":"$pageview","properties":{"$current_url":"http://localhost:8000"}}",
      "distinct_id": "team1-user",
      "ip": "127.0.0.1",
      "now": "2025-01-01T00:00:00.000Z",
      "token": "THIS IS NOT A TOKEN FOR TEAM 2",
      "uuid": "<REPLACED-UUID-0>",
    },
  },
]
`;

exports[`IngestionConsumer general overflow force overflow should handle multiple token:distinct_id pairs in force overflow setting: force overflow messages multiple pairs 1`] = `
[
  {
    "headers": {
      "distinct_id": "user1",
      "event": "$pageview",
      "now": "2025-01-01T00:00:00.000Z",
      "redirect-step": "applyEventRestrictionsStep",
      "redirect-timestamp": "2025-01-01T00:00:00.000Z",
      "token": "THIS IS NOT A TOKEN FOR TEAM 2",
      "uuid": "<REPLACED-UUID-0>",
    },
    "key": "THIS IS NOT A TOKEN FOR TEAM 2:user1",
    "topic": "events_plugin_ingestion_overflow_test",
    "value": {
      "data": "{"distinct_id":"user1","uuid":"<REPLACED-UUID-0>","ip":"127.0.0.1","site_url":"us.posthog.com","now":"2025-01-01T00:00:00.000Z","event":"$pageview","properties":{"$current_url":"http://localhost:8000"}}",
      "distinct_id": "user1",
      "ip": "127.0.0.1",
      "now": "2025-01-01T00:00:00.000Z",
      "token": "THIS IS NOT A TOKEN FOR TEAM 2",
      "uuid": "<REPLACED-UUID-0>",
    },
  },
  {
    "headers": {
      "distinct_id": "user2",
      "event": "$pageview",
      "now": "2025-01-01T00:00:00.000Z",
      "redirect-step": "applyEventRestrictionsStep",
      "redirect-timestamp": "2025-01-01T00:00:00.000Z",
      "token": "THIS IS NOT A TOKEN FOR TEAM 3",
      "uuid": "<REPLACED-UUID-1>",
    },
    "key": "THIS IS NOT A TOKEN FOR TEAM 3:user2",
    "topic": "events_plugin_ingestion_overflow_test",
    "value": {
      "data": "{"distinct_id":"user2","uuid":"<REPLACED-UUID-1>","ip":"127.0.0.1","site_url":"us.posthog.com","now":"2025-01-01T00:00:00.000Z","event":"$pageview","properties":{"$current_url":"http://localhost:8000"}}",
      "distinct_id": "user2",
      "ip": "127.0.0.1",
      "now": "2025-01-01T00:00:00.000Z",
      "token": "THIS IS NOT A TOKEN FOR TEAM 3",
      "uuid": "<REPLACED-UUID-1>",
    },
  },
]
`;

exports[`IngestionConsumer general overflow should emit to overflow if token and distinct_id are overflowed 1`] = `
[
  {
    "headers": {
      "distinct_id": "overflow-distinct-id",
      "event": "$pageview",
      "now": "2025-01-01T00:00:00.000Z",
      "redirect-original-key": "THIS IS NOT A TOKEN FOR TEAM 2:overflow-distinct-id",
      "redirect-step": "rateLimitToOverflowStep",
      "redirect-timestamp": "2025-01-01T00:00:00.000Z",
      "token": "THIS IS NOT A TOKEN FOR TEAM 2",
      "uuid": "<REPLACED-UUID-0>",
    },
    "key": null,
    "topic": "events_plugin_ingestion_overflow_test",
    "value": {
      "data": "{"distinct_id":"overflow-distinct-id","uuid":"<REPLACED-UUID-0>","ip":"127.0.0.1","site_url":"us.posthog.com","now":"2025-01-01T00:00:00.000Z","event":"$pageview","properties":{"$current_url":"http://localhost:8000"}}",
      "distinct_id": "overflow-distinct-id",
      "ip": "127.0.0.1",
      "now": "2025-01-01T00:00:00.000Z",
      "token": "THIS IS NOT A TOKEN FOR TEAM 2",
      "uuid": "<REPLACED-UUID-0>",
    },
  },
]
`;

exports[`IngestionConsumer general should not blend person properties from 2 different cookieless users 1`] = `
[
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-0>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "<REPLACED-COOKIELESS-ID-3>",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-4>",
      "person_mode": "full",
      "person_properties": "{"a":"a","ab":"a","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$host":"localhost:8000","$session_id":"<REPLACED-UUID-1>","$device_id":"<REPLACED-COOKIELESS-ID-2>","$cookieless_mode":true,"$set":{"a":"a","ab":"a","$current_url":"http://localhost:8000"},"$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-0>",
    },
  },
]
`;

exports[`IngestionConsumer general should not blend person properties from 2 different cookieless users 2`] = `
[
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-0>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "<REPLACED-COOKIELESS-ID-3>",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-4>",
      "person_mode": "full",
      "person_properties": "{"b":"b","ab":"b","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$host":"localhost:8000","$session_id":"<REPLACED-UUID-1>","$device_id":"<REPLACED-COOKIELESS-ID-2>","$cookieless_mode":true,"$set":{"b":"b","ab":"b","$current_url":"http://localhost:8000"},"$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-0>",
    },
  },
]
`;

exports[`IngestionConsumer general should process a cookieless event 1`] = `
[
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-0>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "<REPLACED-COOKIELESS-ID-2>",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-0>",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-1>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "<REPLACED-COOKIELESS-ID-2>",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$host":"localhost:8000","$session_id":"<REPLACED-UUID-3>","$device_id":"<REPLACED-COOKIELESS-ID-4>","$cookieless_mode":true,"$set":{"$current_url":"http://localhost:8000"},"$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-1>",
    },
  },
]
`;

exports[`IngestionConsumer general should process a standard event 1`] = `
[
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-0>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "user-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-0>",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-1>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$ip":"127.0.0.1","$set":{"$current_url":"http://localhost:8000"},"$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-1>",
    },
  },
]
`;

exports[`IngestionConsumer typical event processing $identify event 1`] = `
[
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-0>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$email":"[email protected]","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": {
      "event": "$identify",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-1>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$identify",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"$email":"[email protected]","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$set":{"$email":"[email protected]","$current_url":"http://localhost:8000"},"$ip":"127.0.0.1","$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-1>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "user-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-0>",
      "team_id": 2,
      "version": 0,
    },
  },
]
`;

exports[`IngestionConsumer typical event processing ai event 1`] = `
[
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-0>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": {
      "event": "$ai_generation",
      "productTrack": "llma",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-1>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$ai_generation",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$ai_model":"gpt-4","$ai_provider":"openai","$ai_input_tokens":100,"$ai_output_tokens":50,"$ip":"127.0.0.1","$set":{"$current_url":"http://localhost:8000"},"$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-1>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "user-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-0>",
      "team_id": 2,
      "version": 0,
    },
  },
]
`;

exports[`IngestionConsumer typical event processing event with common distinct_id that gets dropped 1`] = `
[
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-0>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "distinct_id",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-1>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$ip":"127.0.0.1","$set":{"$current_url":"http://localhost:8000"},"$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-0>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "distinct_id",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-1>",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-1>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
]
`;

exports[`IngestionConsumer typical event processing forced person upgrade 1`] = `
[
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-0>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"email":"[email protected]","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-0>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"email":"[email protected]","update3":"3","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 1,
    },
  },
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-2>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "1970-01-01 00:00:05",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "propertyless",
      "person_properties": "{}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$process_person_profile":false,"$ip":"127.0.0.1"}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-2>",
    },
  },
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-3>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "force_upgrade",
      "person_properties": "{}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$process_person_profile":false,"$ip":"127.0.0.1"}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:02:00.000",
      "uuid": "<REPLACED-UUID-3>",
    },
  },
  {
    "headers": {
      "event": "$identify",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-1>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$identify",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"email":"[email protected]","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$set":{"email":"[email protected]","$current_url":"http://localhost:8000"},"$ip":"127.0.0.1","$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-1>",
    },
  },
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-4>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"email":"[email protected]","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000","update3":"3"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$set":{"update3":"3","$current_url":"http://localhost:8000"},"$ip":"127.0.0.1","$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:03:00.000",
      "uuid": "<REPLACED-UUID-4>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "user-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-0>",
      "team_id": 2,
      "version": 0,
    },
  },
]
`;

exports[`IngestionConsumer typical event processing groups 1`] = `
[
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-0>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_groups_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "group_key": "group-a",
      "group_properties": "{"id":"group-a","foo":"bar"}",
      "group_type_index": 0,
      "team_id": 2,
      "version": 1,
    },
  },
  {
    "headers": {
      "event": "$groupidentify",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-2>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$groupidentify",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$group_type":"a","$group_key":"group-a","$group_set":{"id":"group-a","foo":"bar"},"$ip":"127.0.0.1"}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-2>",
    },
  },
  {
    "headers": {
      "event": "$groupidentify",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-3>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$groupidentify",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$group_type":"f","$group_key":"group-f","$group_set":{"id":"group-f","foo":"bar"},"$ip":"127.0.0.1"}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-3>",
    },
  },
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-1>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$groups":{"a":"group-a","b":"group-b","c":"group-c","d":"group-d","e":"group-e","f":"group-f"},"$ip":"127.0.0.1","$set":{"$current_url":"http://localhost:8000"},"$set_once":{"$initial_current_url":"http://localhost:8000"},"$group_0":"group-a","$group_1":"group-b","$group_2":"group-c","$group_3":"group-d","$group_4":"group-e"}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-1>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "user-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-0>",
      "team_id": 2,
      "version": 0,
    },
  },
]
`;

exports[`IngestionConsumer typical event processing malformed event 1`] = `
[
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-0>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": {
      "event": "",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-1>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$ip":"127.0.0.1","$set":{"$current_url":"http://localhost:8000"},"$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-1>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "user-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-0>",
      "team_id": 2,
      "version": 0,
    },
  },
]
`;

exports[`IngestionConsumer typical event processing malformed person information 1`] = `
[
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-0>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "distinct-id-1",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-1>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$set":{"$current_url":"http://localhost:8000"},"$unset":[[[["definitel invalid"]]]],"$ip":"127.0.0.1","$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-0>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "distinct-id-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-1>",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-1>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
]
`;

exports[`IngestionConsumer typical event processing multiple events 1`] = `
[
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-0>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "anonymous-id-1",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-1>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"https://example.com/page1","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"https://example.com/page1"}",
      "project_id": 2,
      "properties": "{"$current_url":"https://example.com/page1","$ip":"127.0.0.1","$set":{"$current_url":"https://example.com/page1"},"$set_once":{"$initial_current_url":"https://example.com/page1"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-0>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "anonymous-id-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-1>",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": {
      "event": "$identify",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-2>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "identified-id-1",
      "elements_chain": "",
      "event": "$identify",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-3>",
      "person_mode": "full",
      "person_properties": "{"$email":"[email protected]","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-2>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$set":{"$email":"[email protected]","$current_url":"http://localhost:8000"},"$anonymous_distinct_id":"anonymous-id-1","$ip":"127.0.0.1","$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-2>",
    },
  },
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-4>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "identified-id-1",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-3>",
      "person_mode": "full",
      "person_properties": "{"$email":"[email protected]","$current_url":"https://example.com/page2","$creator_event_uuid":"<REPLACED-UUID-2>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"https://example.com/page2","$ip":"127.0.0.1","$set":{"$current_url":"https://example.com/page2"},"$set_once":{"$initial_current_url":"https://example.com/page2"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-4>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "identified-id-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-3>",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-1>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$current_url":"https://example.com/page1","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"https://example.com/page1"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-3>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$email":"[email protected]","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-2>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
]
`;

exports[`IngestionConsumer typical event processing normal event 1`] = `
[
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-0>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-1>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-0>",
      "person_mode": "full",
      "person_properties": "{"$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-1>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$ip":"127.0.0.1","$set":{"$current_url":"http://localhost:8000"},"$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-1>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "user-1",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-0>",
      "team_id": 2,
      "version": 0,
    },
  },
]
`;

exports[`IngestionConsumer typical event processing person processing off 1`] = `
[
  {
    "headers": {
      "event": "$pageview",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-0>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "user-1",
      "elements_chain": "",
      "event": "$pageview",
      "person_created_at": "1970-01-01 00:00:05",
      "person_id": "<REPLACED-UUID-1>",
      "person_mode": "propertyless",
      "person_properties": "{}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$process_person_profile":false,"$ip":"127.0.0.1"}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-0>",
    },
  },
]
`;

exports[`IngestionConsumer typical event processing person property merging via alias 1`] = `
[
  {
    "headers": {
      "event": "custom event",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-0>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "<REPLACED-UUID-1>",
      "elements_chain": "",
      "event": "custom event",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-2>",
      "person_mode": "full",
      "person_properties": "{"k":"v","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$set":{"k":"v","$current_url":"http://localhost:8000"},"$ip":"127.0.0.1","$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-0>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "<REPLACED-UUID-1>",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-2>",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "<REPLACED-UUID-1>",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-3>",
      "team_id": 2,
      "version": 1,
    },
  },
  {
    "headers": {
      "event": "custom event",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-4>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "<REPLACED-UUID-5>",
      "elements_chain": "",
      "event": "custom event",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-3>",
      "person_mode": "full",
      "person_properties": "{"j":"w","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-4>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","$set":{"j":"w","$current_url":"http://localhost:8000"},"$ip":"127.0.0.1","$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-4>",
    },
  },
  {
    "headers": {
      "event": "$create_alias",
      "productTrack": "general",
      "team_id": "2",
    },
    "key": "<REPLACED-UUID-6>",
    "topic": "clickhouse_events_json_test",
    "value": {
      "captured_at": "2025-01-01 00:00:00.000",
      "created_at": "2025-01-01 00:00:00.000",
      "distinct_id": "<REPLACED-UUID-5>",
      "elements_chain": "",
      "event": "$create_alias",
      "person_created_at": "2025-01-01 00:00:00",
      "person_id": "<REPLACED-UUID-3>",
      "person_mode": "full",
      "person_properties": "{"j":"w","k":"v","l":"x","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-4>","$initial_current_url":"http://localhost:8000"}",
      "project_id": 2,
      "properties": "{"$current_url":"http://localhost:8000","alias":"<REPLACED-UUID-1>","$set":{"l":"x","$current_url":"http://localhost:8000"},"$ip":"127.0.0.1","$set_once":{"$initial_current_url":"http://localhost:8000"}}",
      "team_id": 2,
      "timestamp": "2025-01-01 00:00:00.000",
      "uuid": "<REPLACED-UUID-6>",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_distinct_id_test",
    "value": {
      "distinct_id": "<REPLACED-UUID-5>",
      "is_deleted": 0,
      "person_id": "<REPLACED-UUID-3>",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-3>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"j":"w","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-4>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-3>",
      "is_deleted": 0,
      "is_identified": 1,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"j":"w","k":"v","l":"x","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-4>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 1,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-2>",
      "is_deleted": 0,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{"k":"v","$current_url":"http://localhost:8000","$creator_event_uuid":"<REPLACED-UUID-0>","$initial_current_url":"http://localhost:8000"}",
      "team_id": 2,
      "version": 0,
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_person_test",
    "value": {
      "created_at": "2025-01-01 00:00:00",
      "id": "<REPLACED-UUID-2>",
      "is_deleted": 1,
      "is_identified": 0,
      "last_seen_at": "2025-01-01 00:00:00",
      "properties": "{}",
      "team_id": 2,
      "version": 1,
    },
  },
]
`;