: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(clickhouse): DRY aux tables via extend/abstract columns (#68085)
Paweł Szczur2d7dbd107b11
diff --git a/posthog/clickhouse/hcl/roles/aux/shared/tables.hcl b/posthog/clickhouse/hcl/roles/aux/shared/tables.hclindex ece7b5d0fdf5..f596e9e2a34f 100644--- a/posthog/clickhouse/hcl/roles/aux/shared/tables.hcl+++ b/posthog/clickhouse/hcl/roles/aux/shared/tables.hcl@@ -1,5 +1,6 @@database "posthog" {- table "conversion_goal_attributed_preaggregated" {+ table "_conversion_goal_attributed_preaggregated_columns" {+ abstract = truecolumn "team_id" {type = "Int64"}@@ -56,63 +57,9 @@ database "posthog" {type = "Date"default = "today() + toIntervalDay(7)"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "sharded_conversion_goal_attributed_preaggregated"- sharding_key = "cityHash64(person_id)"- }- }- table "error_tracking_fingerprint_issue_state" {- column "team_id" {- type = "Int64"- }- column "fingerprint" {- type = "String"- }- column "issue_id" {- type = "UUID"- }- column "issue_name" {- type = "Nullable(String)"- }- column "issue_description" {- type = "Nullable(String)"- }- column "issue_status" {- type = "String"- }- column "assigned_user_id" {- type = "Nullable(Int64)"- }- column "assigned_role_id" {- type = "Nullable(UUID)"- }- column "first_seen" {- type = "DateTime64(3, 'UTC')"- }- column "is_deleted" {- type = "Int8"- }- column "version" {- type = "Int64"- }- column "_timestamp" {- type = "DateTime"- }- column "_offset" {- type = "UInt64"- }- column "_partition" {- type = "UInt64"- }- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "raw_error_tracking_fingerprint_issue_state"- }}- table "experiment_metric_events_preaggregated" {+ table "_experiment_metric_events_preaggregated_columns" {+ abstract = truecolumn "team_id" {type = "Int64"}@@ -147,175 +94,9 @@ database "posthog" {type = "Date"default = "today() + toIntervalDay(7)"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "sharded_experiment_metric_events_preaggregated"- sharding_key = "cityHash64(entity_id)"- }- }- table "hog_invocation_results" {- column "team_id" {- type = "Int64"- }- column "function_kind" {- type = "LowCardinality(String)"- }- column "function_id" {- type = "String"- }- column "invocation_id" {- type = "String"- }- column "parent_run_id" {- type = "String"- }- column "status" {- type = "LowCardinality(String)"- }- column "attempts" {- type = "UInt8"- }- column "is_retry" {- type = "UInt8"- }- column "scheduled_at" {- type = "DateTime64(6, 'UTC')"- }- column "first_scheduled_at" {- type = "DateTime64(6, 'UTC')"- }- column "started_at" {- type = "Nullable(DateTime64(6, 'UTC'))"- }- column "finished_at" {- type = "Nullable(DateTime64(6, 'UTC'))"- }- column "duration_ms" {- type = "Nullable(UInt32)"- }- column "error_kind" {- type = "LowCardinality(String)"- }- column "error_message" {- type = "String"- }- column "event_uuid" {- type = "String"- }- column "distinct_id" {- type = "String"- }- column "person_id" {- type = "String"- }- column "invocation_globals" {- type = "String"- }- column "version" {- type = "UInt64"- }- column "is_deleted" {- type = "UInt8"- }- column "_timestamp" {- type = "DateTime"- }- column "_offset" {- type = "UInt64"- }- column "_partition" {- type = "UInt64"- }- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "hog_invocation_results_data"- }- }- table "kafka_message_assets" {- column "team_id" {- type = "Int64"- }- column "function_kind" {- type = "LowCardinality(String)"- }- column "function_id" {- type = "String"- }- column "parent_run_id" {- type = "String"- }- column "invocation_id" {- type = "String"- }- column "action_id" {- type = "String"- }- column "kind" {- type = "LowCardinality(String)"- }- column "distinct_id" {- type = "String"- }- column "person_id" {- type = "String"- }- column "recipient" {- type = "String"- }- column "subject" {- type = "String"- }- column "status" {- type = "LowCardinality(String)"- }- column "sent_at" {- type = "DateTime64(6, 'UTC')"- }- column "version" {- type = "UInt64"- }- column "is_deleted" {- type = "UInt8"- }- column "html" {- type = "String"- }- engine "kafka" {- broker_list = "warpstream_cyclotron"- topic_list = "kafka_topic_list = 'clickhouse_message_assets'"- group_name = "kafka_group_name = 'clickhouse_message_assets'"- format = "kafka_format = 'JSONEachRow'"- skip_broken_messages = 100- }- }- table "kafka_property_values" {- column "team_id" {- type = "Int64"- }- column "property_type" {- type = "LowCardinality(String)"- }- column "property_key" {- type = "String"- }- column "property_value" {- type = "String"- }- column "property_count" {- type = "UInt64"- }- engine "kafka" {- broker_list = "warpstream_ingestion"- topic_list = "kafka_topic_list = 'clickhouse_property_values'"- group_name = "kafka_group_name = 'clickhouse_property_values'"- format = "kafka_format = 'JSONEachRow'"- num_consumers = 8- thread_per_consumer = true- }}- table "marketing_conversions_preaggregated" {+ table "_marketing_conversions_preaggregated_columns" {+ abstract = truecolumn "team_id" {type = "Int64"}@@ -369,14 +150,9 @@ database "posthog" {type = "Date"default = "today() + toIntervalDay(7)"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "sharded_marketing_conversions_preaggregated"- sharding_key = "cityHash64(person_id)"- }}- table "marketing_costs_preaggregated" {+ table "_marketing_costs_preaggregated_columns" {+ abstract = truecolumn "team_id" {type = "Int64"}@@ -439,14 +215,9 @@ database "posthog" {type = "Date"default = "today() + toIntervalDay(7)"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "sharded_marketing_costs_preaggregated"- sharding_key = "cityHash64(source_name, campaign_id)"- }}- table "marketing_touchpoints_preaggregated" {+ table "_marketing_touchpoints_preaggregated_columns" {+ abstract = truecolumn "team_id" {type = "Int64"}@@ -494,1897 +265,1306 @@ database "posthog" {type = "Date"default = "today() + toIntervalDay(7)"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "sharded_marketing_touchpoints_preaggregated"- sharding_key = "cityHash64(person_id)"- }}- table "message_assets" {+ table "_session_replay_features_columns" {+ abstract = true+ column "session_id" {+ type = "String"+ }column "team_id" {type = "Int64"}- column "function_kind" {- type = "LowCardinality(String)"- }- column "function_id" {+ column "distinct_id" {type = "String"}- column "parent_run_id" {- type = "String"+ column "min_first_timestamp" {+ type = "SimpleAggregateFunction(min, DateTime64(6, 'UTC'))"}- column "invocation_id" {- type = "String"+ column "max_last_timestamp" {+ type = "SimpleAggregateFunction(max, DateTime64(6, 'UTC'))"}- column "action_id" {- type = "String"+ column "event_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "kind" {- type = "LowCardinality(String)"+ column "mouse_position_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "distinct_id" {- type = "String"+ column "mouse_sum_x" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "person_id" {- type = "String"+ column "mouse_sum_x_squared" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "recipient" {- type = "String"+ column "mouse_sum_y" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "subject" {- type = "String"+ column "mouse_sum_y_squared" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "status" {- type = "LowCardinality(String)"+ column "mouse_distance_traveled" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "sent_at" {- type = "DateTime64(6, 'UTC')"+ column "mouse_direction_change_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "version" {- type = "UInt64"+ column "mouse_velocity_sum" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "is_deleted" {- type = "UInt8"+ column "mouse_velocity_sum_of_squares" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "html" {- type = "String"+ column "mouse_velocity_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "_timestamp" {- type = "DateTime"+ column "scroll_event_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "_offset" {- type = "UInt64"+ column "total_scroll_magnitude" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "_partition" {- type = "UInt64"+ column "scroll_direction_reversal_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "message_assets_data"+ column "rapid_scroll_reversal_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- }- table "message_assets_data" {- order_by = ["team_id", "function_kind", "function_id", "invocation_id", "action_id"]- partition_by = "toYYYYMMDD(sent_at)"- ttl = "toDate(sent_at) + toIntervalDay(30)"- settings = {- index_granularity = "1024"- ttl_only_drop_parts = "1"+ column "scroll_to_top_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "team_id" {- type = "Int64"+ column "click_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "function_kind" {- type = "LowCardinality(String)"+ column "keypress_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "function_id" {- type = "String"+ column "mouse_activity_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "parent_run_id" {- type = "String"+ column "rage_click_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "invocation_id" {- type = "String"+ column "dead_click_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "action_id" {- type = "String"+ column "backspace_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "kind" {- type = "LowCardinality(String)"+ column "inter_action_gap_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "distinct_id" {- type = "String"+ column "inter_action_gap_sum_ms" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "person_id" {- type = "String"+ column "inter_action_gap_sum_of_squares_ms" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "recipient" {- type = "String"+ column "max_idle_gap_ms" {+ type = "SimpleAggregateFunction(max, Float64)"}- column "subject" {- type = "String"+ column "long_idle_gap_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "status" {- type = "LowCardinality(String)"+ column "quick_back_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "sent_at" {- type = "DateTime64(6, 'UTC')"+ column "page_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "version" {- type = "UInt64"+ column "unique_url_count" {+ type = "AggregateFunction(uniqCombined(12), String)"}- column "is_deleted" {- type = "UInt8"- default = "0"+ column "login_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "html" {- type = "String"- codec = "ZSTD(3)"+ column "signup_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "_timestamp" {- type = "DateTime"+ column "checkout_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "_offset" {- type = "UInt64"+ column "cart_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "_partition" {- type = "UInt64"+ column "billing_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- index "parent_run_idx" {- expr = "parent_run_id"- type = "bloom_filter(0.01)"- granularity = 1+ column "settings_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- index "distinct_id_idx" {- expr = "distinct_id"- type = "bloom_filter(0.01)"- granularity = 1+ column "account_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- index "person_id_idx" {- expr = "person_id"- type = "bloom_filter(0.01)"- granularity = 1+ column "error_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- index "recipient_idx" {- expr = "recipient"- type = "bloom_filter(0.01)"- granularity = 1+ column "not_found_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/noshard/posthog.message_assets_data"- replica_name = "{replica}-{shard}"- version_column = "version"+ column "admin_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- }- table "property_values" {- order_by = ["team_id", "property_type", "property_key", "property_value"]- ttl = "last_seen + toIntervalDay(30)"- settings = {- index_granularity = "8192"+ column "dashboard_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "team_id" {- type = "Int64"- codec = "DoubleDelta, ZSTD(1)"+ column "onboarding_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "property_type" {- type = "LowCardinality(String)"+ column "cancel_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "property_key" {- type = "LowCardinality(String)"+ column "refund_path_visit_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "property_value" {- type = "String"+ column "console_error_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "property_count" {- type = "SimpleAggregateFunction(sum, UInt64)"+ column "console_error_after_click_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "last_seen" {- type = "SimpleAggregateFunction(max, DateTime)"- default = "now()"+ column "console_warn_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- index "idx_property_value_ngrambf" {- expr = "lower(property_value)"- type = "ngrambf_v1(3, 32768, 3, 0)"- granularity = 1+ column "network_request_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- engine "replicated_aggregating_merge_tree" {- zoo_path = "/clickhouse/tables/noshard/posthog.property_values"- replica_name = "{replica}-{shard}"+ column "network_failed_request_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- }- table "property_values_distributed" {- column "team_id" {- type = "Int64"- codec = "DoubleDelta, ZSTD(1)"+ column "network_4xx_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "property_type" {- type = "LowCardinality(String)"+ column "network_5xx_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "property_key" {- type = "LowCardinality(String)"+ column "network_request_duration_sum" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "property_value" {- type = "String"+ column "network_request_duration_sum_of_squares" {+ type = "SimpleAggregateFunction(sum, Float64)"}- column "property_count" {- type = "SimpleAggregateFunction(sum, UInt64)"+ column "network_request_duration_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "last_seen" {- type = "SimpleAggregateFunction(max, DateTime)"- default = "now()"+ column "mutation_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "property_values"+ column "viewport_resize_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- }- table "raw_error_tracking_fingerprint_issue_state" {- order_by = ["team_id", "fingerprint"]- settings = {- index_granularity = "512"+ column "touch_event_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "team_id" {- type = "Int64"+ column "max_scroll_y" {+ type = "SimpleAggregateFunction(max, Float64)"}- column "fingerprint" {- type = "String"+ column "unique_click_target_count" {+ type = "AggregateFunction(uniqCombined(12), Int64)"}- column "issue_id" {- type = "UUID"+ column "unique_form_field_count" {+ type = "AggregateFunction(uniqCombined(12), Int64)"}- column "issue_name" {- type = "Nullable(String)"+ column "text_selection_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "issue_description" {- type = "Nullable(String)"+ column "selection_copy_count" {+ type = "SimpleAggregateFunction(sum, Int64)"}- column "issue_status" {- type = "String"+ column "is_deleted" {+ type = "SimpleAggregateFunction(max, UInt8)"+ default = "0"}- column "assigned_user_id" {- type = "Nullable(Int64)"+ }+ table "_web_bot_definition_columns" {+ abstract = true+ column "id" {+ type = "UInt64"}- column "assigned_role_id" {- type = "Nullable(UUID)"+ column "parent_id" {+ type = "UInt64"}- column "first_seen" {- type = "DateTime64(3, 'UTC')"+ column "regexp" {+ type = "String"}- column "is_deleted" {- type = "Int8"+ column "keys" {+ type = "Array(String)"}- column "version" {+ column "values" {+ type = "Array(String)"+ }+ }+ table "_web_bounces_dimensional_preaggregated_columns" {+ abstract = true+ column "team_id" {type = "Int64"}- column "_timestamp" {- type = "DateTime"+ column "job_id" {+ type = "UUID"}- column "_offset" {- type = "UInt64"+ column "period_bucket" {+ type = "DateTime"}- column "_partition" {- type = "UInt64"+ column "host" {+ type = "String"}- index "kafka_timestamp_minmax_raw_error_tracking_fingerprint_issue_state" {- expr = "_timestamp"- type = "minmax"- granularity = 3+ column "device_type" {+ type = "String"}- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/noshard/posthog.raw_error_tracking_fingerprint_issue_state"- replica_name = "{replica}-{shard}"- version_column = "version"+ column "entry_pathname" {+ type = "String"}- }- table "session_replay_features" {- column "session_id" {+ column "end_pathname" {type = "String"}- column "team_id" {- type = "Int64"+ column "browser" {+ type = "String"}- column "distinct_id" {+ column "os" {type = "String"}- column "min_first_timestamp" {- type = "SimpleAggregateFunction(min, DateTime64(6, 'UTC'))"+ column "viewport_width" {+ type = "Int64"}- column "max_last_timestamp" {- type = "SimpleAggregateFunction(max, DateTime64(6, 'UTC'))"+ column "viewport_height" {+ type = "Int64"}- column "event_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "referring_domain" {+ type = "String"}- column "mouse_position_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "utm_source" {+ type = "String"}- column "mouse_sum_x" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "utm_medium" {+ type = "String"}- column "mouse_sum_x_squared" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "utm_campaign" {+ type = "String"}- column "mouse_sum_y" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "utm_term" {+ type = "String"}- column "mouse_sum_y_squared" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "utm_content" {+ type = "String"}- column "mouse_distance_traveled" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "country_code" {+ type = "String"}- column "mouse_direction_change_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "city_name" {+ type = "String"}- column "mouse_velocity_sum" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "region_code" {+ type = "String"}- column "mouse_velocity_sum_of_squares" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "region_name" {+ type = "String"}- column "mouse_velocity_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "has_gclid" {+ type = "Bool"}- column "scroll_event_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "has_gad_source_paid_search" {+ type = "Bool"}- column "total_scroll_magnitude" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "has_fbclid" {+ type = "Bool"}- column "scroll_direction_reversal_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "mat_metadata_backend" {+ type = "Nullable(String)"}- column "rapid_scroll_reversal_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "mat_metadata_loggedIn" {+ type = "Nullable(Bool)"}- column "scroll_to_top_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "persons_uniq_state" {+ type = "AggregateFunction(uniq, UUID)"}- column "click_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "sessions_uniq_state" {+ type = "AggregateFunction(uniq, String)"}- column "keypress_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "pageviews_count_state" {+ type = "AggregateFunction(sum, Int64)"}- column "mouse_activity_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "bounces_count_state" {+ type = "AggregateFunction(sum, Int64)"}- column "rage_click_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "total_session_duration_state" {+ type = "AggregateFunction(sum, Int64)"}- column "dead_click_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "total_session_count_state" {+ type = "AggregateFunction(sum, Int64)"}- column "backspace_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "computed_at" {+ type = "DateTime64(6, 'UTC')"+ default = "now()"}- column "inter_action_gap_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "expires_at" {+ type = "DateTime64(6, 'UTC')"+ default = "now() + toIntervalDay(7)"}- column "inter_action_gap_sum_ms" {- type = "SimpleAggregateFunction(sum, Float64)"+ }+ table "_web_goals_preaggregated_columns" {+ abstract = true+ column "team_id" {+ type = "Int64"}- column "inter_action_gap_sum_of_squares_ms" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "job_id" {+ type = "UUID"}- column "max_idle_gap_ms" {- type = "SimpleAggregateFunction(max, Float64)"+ column "time_window_start" {+ type = "DateTime64(6, 'UTC')"}- column "long_idle_gap_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "action_id" {+ type = "Int64"}- column "quick_back_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "count_state" {+ type = "AggregateFunction(sum, Int64)"}- column "page_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "unique_persons_state" {+ type = "AggregateFunction(uniq, UUID)"}- column "unique_url_count" {- type = "AggregateFunction(uniqCombined(12), String)"+ column "computed_at" {+ type = "DateTime64(6, 'UTC')"+ default = "now()"}- column "login_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "expires_at" {+ type = "DateTime64(6, 'UTC')"+ default = "now() + toIntervalDay(7)"}- column "signup_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ }+ table "_web_stats_dimensional_preaggregated_columns" {+ abstract = true+ column "team_id" {+ type = "Int64"}- column "checkout_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "job_id" {+ type = "UUID"}- column "cart_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "period_bucket" {+ type = "DateTime"}- column "billing_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "host" {+ type = "String"}- column "settings_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "device_type" {+ type = "String"}- column "account_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "error_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "pathname" {+ type = "String"}- column "not_found_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "entry_pathname" {+ type = "String"}- column "admin_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "end_pathname" {+ type = "String"}- column "dashboard_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "browser" {+ type = "String"}- column "onboarding_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "os" {+ type = "String"}- column "cancel_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "viewport_width" {+ type = "Int64"}- column "refund_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "viewport_height" {+ type = "Int64"}- column "console_error_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "referring_domain" {+ type = "String"}- column "console_error_after_click_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "utm_source" {+ type = "String"}- column "console_warn_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "utm_medium" {+ type = "String"}- column "network_request_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "utm_campaign" {+ type = "String"}- column "network_failed_request_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "utm_term" {+ type = "String"}- column "network_4xx_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "utm_content" {+ type = "String"}- column "network_5xx_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "country_code" {+ type = "String"}- column "network_request_duration_sum" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "city_name" {+ type = "String"}- column "network_request_duration_sum_of_squares" {- type = "SimpleAggregateFunction(sum, Float64)"+ column "region_code" {+ type = "String"}- column "network_request_duration_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "region_name" {+ type = "String"}- column "mutation_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "has_gclid" {+ type = "Bool"}- column "viewport_resize_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "has_gad_source_paid_search" {+ type = "Bool"}- column "touch_event_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "has_fbclid" {+ type = "Bool"}- column "max_scroll_y" {- type = "SimpleAggregateFunction(max, Float64)"+ column "mat_metadata_backend" {+ type = "Nullable(String)"}- column "unique_click_target_count" {- type = "AggregateFunction(uniqCombined(12), Int64)"+ column "mat_metadata_loggedIn" {+ type = "Nullable(Bool)"}- column "unique_form_field_count" {- type = "AggregateFunction(uniqCombined(12), Int64)"+ column "persons_uniq_state" {+ type = "AggregateFunction(uniq, UUID)"}- column "text_selection_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "sessions_uniq_state" {+ type = "AggregateFunction(uniq, String)"}- column "selection_copy_count" {- type = "SimpleAggregateFunction(sum, Int64)"+ column "pageviews_count_state" {+ type = "AggregateFunction(sum, Int64)"}- column "is_deleted" {- type = "SimpleAggregateFunction(max, UInt8)"- default = "0"+ column "computed_at" {+ type = "DateTime64(6, 'UTC')"+ default = "now()"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "sharded_session_replay_features"- sharding_key = "sipHash64(session_id)"+ column "expires_at" {+ type = "DateTime64(6, 'UTC')"+ default = "now() + toIntervalDay(7)"}}- table "sharded_conversion_goal_attributed_preaggregated" {- order_by = ["team_id", "job_id", "person_id", "conversion_timestamp", "touchpoint_timestamp"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "expires_at"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"- }+ table "_web_stats_frustration_preaggregated_columns" {+ abstract = truecolumn "team_id" {type = "Int64"}column "job_id" {type = "UUID"}- column "person_id" {- type = "UUID"- }- column "conversion_timestamp" {- type = "DateTime64(6, 'UTC')"- }- column "conversion_value" {- type = "Float64"- }- column "touchpoint_timestamp" {+ column "time_window_start" {type = "DateTime64(6, 'UTC')"}- column "touchpoint_weight" {- type = "Float64"- }- column "campaign_name" {- type = "String"- }- column "source_name" {- type = "String"- }- column "medium_name" {- type = "String"- }- column "content_name" {- type = "String"- }- column "term_name" {- type = "String"- }- column "referring_domain_name" {+ column "breakdown_value" {type = "String"}- column "gclid_name" {- type = "String"+ column "sum_rage_clicks_state" {+ type = "AggregateFunction(sum, Int64)"}- column "fbclid_name" {- type = "String"+ column "sum_dead_clicks_state" {+ type = "AggregateFunction(sum, Int64)"}- column "gad_source_name" {- type = "String"+ column "sum_errors_state" {+ type = "AggregateFunction(sum, Int64)"}column "computed_at" {type = "DateTime64(6, 'UTC')"default = "now()"}column "expires_at" {- type = "Date"- default = "today() + toIntervalDay(7)"- }- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/noshard/posthog.conversion_goal_attributed_preaggregated"- replica_name = "{replica}-{shard}"- version_column = "computed_at"+ type = "DateTime64(6, 'UTC')"+ default = "now() + toIntervalDay(7)"}}- table "sharded_experiment_metric_events_preaggregated" {- order_by = ["team_id", "job_id", "entity_id", "timestamp", "event_uuid"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "expires_at"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"- }+ table "_web_stats_preaggregated_columns" {+ abstract = truecolumn "team_id" {type = "Int64"}column "job_id" {type = "UUID"}- column "entity_id" {- type = "String"- }- column "timestamp" {+ column "time_window_start" {type = "DateTime64(6, 'UTC')"}- column "event_uuid" {- type = "UUID"+ column "breakdown_by" {+ type = "String"}- column "session_id" {+ column "breakdown_value" {type = "String"}- column "numeric_value" {- type = "Float64"- default = "0"+ column "uniq_users_state" {+ type = "AggregateFunction(uniq, UUID)"}- column "steps" {- type = "Array(UInt8)"- default = "[]"+ column "sum_pageviews_state" {+ type = "AggregateFunction(sum, Int64)"}column "computed_at" {type = "DateTime64(6, 'UTC')"default = "now()"}column "expires_at" {- type = "Date"- default = "today() + toIntervalDay(7)"- }- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/noshard/posthog.experiment_metric_events_preaggregated"- replica_name = "{replica}-{shard}"- version_column = "computed_at"+ type = "DateTime64(6, 'UTC')"+ default = "now() + toIntervalDay(7)"}}- table "sharded_marketing_conversions_preaggregated" {- order_by = ["team_id", "job_id", "person_id", "conversion_timestamp"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "expires_at"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"- }+ table "_web_vitals_paths_preaggregated_columns" {+ abstract = truecolumn "team_id" {type = "Int64"}column "job_id" {type = "UUID"}- column "person_id" {- type = "UUID"- }- column "conversion_timestamp" {+ column "time_window_start" {type = "DateTime64(6, 'UTC')"}- column "conversion_math_value" {- type = "Float64"- }- column "session_id" {+ column "path" {type = "String"}- column "campaign_name" {- type = "String"+ column "inp_quantiles_state" {+ type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"}- column "source_name" {- type = "String"+ column "lcp_quantiles_state" {+ type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"}- column "medium_name" {- type = "String"+ column "cls_quantiles_state" {+ type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"}- column "content_name" {- type = "String"+ column "fcp_quantiles_state" {+ type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"}- column "term_name" {- type = "String"+ column "computed_at" {+ type = "DateTime64(6, 'UTC')"+ default = "now()"}- column "referring_domain_name" {- type = "String"+ column "expires_at" {+ type = "DateTime64(6, 'UTC')"+ default = "now() + toIntervalDay(7)"}- column "gclid_name" {- type = "String"+ }+ table "conversion_goal_attributed_preaggregated" {+ extend = "_conversion_goal_attributed_preaggregated_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_conversion_goal_attributed_preaggregated"+ sharding_key = "cityHash64(person_id)"}- column "fbclid_name" {+ }+ table "error_tracking_fingerprint_issue_state" {+ column "team_id" {+ type = "Int64"+ }+ column "fingerprint" {type = "String"}- column "gad_source_name" {+ column "issue_id" {+ type = "UUID"+ }+ column "issue_name" {+ type = "Nullable(String)"+ }+ column "issue_description" {+ type = "Nullable(String)"+ }+ column "issue_status" {type = "String"}- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"+ column "assigned_user_id" {+ type = "Nullable(Int64)"}- column "expires_at" {- type = "Date"- default = "today() + toIntervalDay(7)"+ column "assigned_role_id" {+ type = "Nullable(UUID)"}- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/noshard/posthog.marketing_conversions_preaggregated"- replica_name = "{replica}-{shard}"- version_column = "computed_at"+ column "first_seen" {+ type = "DateTime64(3, 'UTC')"+ }+ column "is_deleted" {+ type = "Int8"+ }+ column "version" {+ type = "Int64"+ }+ column "_timestamp" {+ type = "DateTime"+ }+ column "_offset" {+ type = "UInt64"+ }+ column "_partition" {+ type = "UInt64"+ }+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "raw_error_tracking_fingerprint_issue_state"}}- table "sharded_marketing_costs_preaggregated" {- order_by = ["team_id", "job_id", "source_name", "grain", "campaign_id", "ad_group_id", "ad_id", "cost_date"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "expires_at"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"+ table "experiment_metric_events_preaggregated" {+ extend = "_experiment_metric_events_preaggregated_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_experiment_metric_events_preaggregated"+ sharding_key = "cityHash64(entity_id)"}+ }+ table "hog_invocation_results" {column "team_id" {type = "Int64"}- column "job_id" {- type = "UUID"+ column "function_kind" {+ type = "LowCardinality(String)"}- column "source_id" {+ column "function_id" {type = "String"}- column "source_name" {+ column "invocation_id" {type = "String"}- column "grain" {+ column "parent_run_id" {+ type = "String"+ }+ column "status" {type = "LowCardinality(String)"}- column "match_key" {- type = "String"+ column "attempts" {+ type = "UInt8"}- column "campaign_id" {- type = "String"+ column "is_retry" {+ type = "UInt8"}- column "campaign_name" {- type = "String"+ column "scheduled_at" {+ type = "DateTime64(6, 'UTC')"}- column "ad_group_id" {- type = "String"+ column "first_scheduled_at" {+ type = "DateTime64(6, 'UTC')"}- column "ad_group_name" {- type = "String"+ column "started_at" {+ type = "Nullable(DateTime64(6, 'UTC'))"}- column "ad_id" {+ column "finished_at" {+ type = "Nullable(DateTime64(6, 'UTC'))"+ }+ column "duration_ms" {+ type = "Nullable(UInt32)"+ }+ column "error_kind" {+ type = "LowCardinality(String)"+ }+ column "error_message" {type = "String"}- column "ad_name" {+ column "event_uuid" {type = "String"}- column "cost_date" {- type = "Date"+ column "distinct_id" {+ type = "String"}- column "cost" {- type = "Float64"+ column "person_id" {+ type = "String"}- column "clicks" {- type = "Float64"+ column "invocation_globals" {+ type = "String"}- column "impressions" {- type = "Float64"+ column "version" {+ type = "UInt64"}- column "reported_conversions" {- type = "Float64"+ column "is_deleted" {+ type = "UInt8"}- column "reported_conversion_value" {- type = "Float64"+ column "_timestamp" {+ type = "DateTime"}- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"+ column "_offset" {+ type = "UInt64"}- column "expires_at" {- type = "Date"- default = "today() + toIntervalDay(7)"+ column "_partition" {+ type = "UInt64"}- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/noshard/posthog.marketing_costs_preaggregated"- replica_name = "{replica}-{shard}"- version_column = "computed_at"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "hog_invocation_results_data"}}- table "sharded_marketing_touchpoints_preaggregated" {- order_by = ["team_id", "job_id", "person_id", "touchpoint_timestamp"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "expires_at"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"- }+ table "kafka_message_assets" {column "team_id" {type = "Int64"}- column "job_id" {- type = "UUID"- }- column "person_id" {- type = "UUID"- }- column "touchpoint_timestamp" {- type = "DateTime64(6, 'UTC')"+ column "function_kind" {+ type = "LowCardinality(String)"}- column "campaign_name" {+ column "function_id" {type = "String"}- column "source_name" {+ column "parent_run_id" {type = "String"}- column "medium_name" {+ column "invocation_id" {type = "String"}- column "content_name" {+ column "action_id" {type = "String"}- column "term_name" {- type = "String"+ column "kind" {+ type = "LowCardinality(String)"}- column "referring_domain_name" {+ column "distinct_id" {type = "String"}- column "gclid_name" {+ column "person_id" {type = "String"}- column "fbclid_name" {+ column "recipient" {type = "String"}- column "gad_source_name" {+ column "subject" {type = "String"}- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"+ column "status" {+ type = "LowCardinality(String)"}- column "expires_at" {- type = "Date"- default = "today() + toIntervalDay(7)"+ column "sent_at" {+ type = "DateTime64(6, 'UTC')"}- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/noshard/posthog.marketing_touchpoints_preaggregated"- replica_name = "{replica}-{shard}"- version_column = "computed_at"+ column "version" {+ type = "UInt64"}- }- table "sharded_session_replay_features" {- order_by = ["team_id", "session_id"]- partition_by = "toYYYYMM(min_first_timestamp)"- settings = {- index_granularity = "512"+ column "is_deleted" {+ type = "UInt8"}- column "session_id" {+ column "html" {type = "String"}+ engine "kafka" {+ broker_list = "warpstream_cyclotron"+ topic_list = "kafka_topic_list = 'clickhouse_message_assets'"+ group_name = "kafka_group_name = 'clickhouse_message_assets'"+ format = "kafka_format = 'JSONEachRow'"+ skip_broken_messages = 100+ }+ }+ table "kafka_property_values" {column "team_id" {type = "Int64"}- column "distinct_id" {+ column "property_type" {+ type = "LowCardinality(String)"+ }+ column "property_key" {type = "String"}- column "min_first_timestamp" {- type = "SimpleAggregateFunction(min, DateTime64(6, 'UTC'))"+ column "property_value" {+ type = "String"}- column "max_last_timestamp" {- type = "SimpleAggregateFunction(max, DateTime64(6, 'UTC'))"+ column "property_count" {+ type = "UInt64"}- column "event_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "mouse_position_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "mouse_sum_x" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "mouse_sum_x_squared" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "mouse_sum_y" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "mouse_sum_y_squared" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "mouse_distance_traveled" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "mouse_direction_change_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "mouse_velocity_sum" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "mouse_velocity_sum_of_squares" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "mouse_velocity_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "scroll_event_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "total_scroll_magnitude" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "scroll_direction_reversal_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "rapid_scroll_reversal_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "scroll_to_top_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "click_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "keypress_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "mouse_activity_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "rage_click_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "dead_click_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "backspace_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "inter_action_gap_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "inter_action_gap_sum_ms" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "inter_action_gap_sum_of_squares_ms" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "max_idle_gap_ms" {- type = "SimpleAggregateFunction(max, Float64)"- }- column "long_idle_gap_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "quick_back_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "page_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "unique_url_count" {- type = "AggregateFunction(uniqCombined(12), String)"- }- column "login_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "signup_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "checkout_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "cart_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "billing_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "settings_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "account_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "error_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "not_found_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "admin_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "dashboard_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "onboarding_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "cancel_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "refund_path_visit_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "console_error_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "console_error_after_click_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "console_warn_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "network_request_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "network_failed_request_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "network_4xx_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "network_5xx_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "network_request_duration_sum" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "network_request_duration_sum_of_squares" {- type = "SimpleAggregateFunction(sum, Float64)"- }- column "network_request_duration_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "mutation_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "viewport_resize_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "touch_event_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "max_scroll_y" {- type = "SimpleAggregateFunction(max, Float64)"- }- column "unique_click_target_count" {- type = "AggregateFunction(uniqCombined(12), Int64)"- }- column "unique_form_field_count" {- type = "AggregateFunction(uniqCombined(12), Int64)"- }- column "text_selection_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "selection_copy_count" {- type = "SimpleAggregateFunction(sum, Int64)"- }- column "is_deleted" {- type = "SimpleAggregateFunction(max, UInt8)"- default = "0"- }- engine "replicated_aggregating_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.session_replay_features"- replica_name = "{replica}"- }- }- table "sharded_usage_report_events_preagg" {- order_by = ["date", "team_id", "person_mode", "lib", "event"]- partition_by = "date"- ttl = "date + toIntervalDay(14)"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"- }- column "date" {- type = "Date"- }- column "team_id" {- type = "Int64"- }- column "person_mode" {- type = "LowCardinality(String)"- }- column "lib" {- type = "LowCardinality(String)"- }- column "event" {- type = "String"- }- column "distinct_events_unique" {- type = "AggregateFunction(uniqExact, Tuple(UInt64, UInt64, UInt64))"- }- column "event_count" {- type = "AggregateFunction(sum, UInt64)"- }- engine "replicated_aggregating_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.sharded_usage_report_events_preagg"- replica_name = "{replica}"- }- }- table "sharded_web_bot_definition" {- order_by = ["id"]- settings = {- index_granularity = "8192"- }- column "id" {- type = "UInt64"- }- column "parent_id" {- type = "UInt64"- }- column "regexp" {- type = "String"- }- column "keys" {- type = "Array(String)"- }- column "values" {- type = "Array(String)"- }- engine "replicated_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.sharded_web_bot_definition"- replica_name = "{replica}"- }- }- table "sharded_web_bounces_dimensional_preaggregated" {- order_by = ["team_id", "job_id", "period_bucket", "host", "device_type", "entry_pathname", "end_pathname", "browser", "os", "viewport_width", "viewport_height", "referring_domain", "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "country_code", "city_name", "region_code", "region_name", "has_gclid", "has_gad_source_paid_search", "has_fbclid", "mat_metadata_backend", "mat_metadata_loggedIn"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "toDateTime(expires_at)"- settings = {- allow_nullable_key = "1"- index_granularity = "8192"- ttl_only_drop_parts = "1"- }- column "team_id" {- type = "Int64"- }- column "job_id" {- type = "UUID"- }- column "period_bucket" {- type = "DateTime"- }- column "host" {- type = "String"- }- column "device_type" {- type = "String"- }- column "entry_pathname" {- type = "String"- }- column "end_pathname" {- type = "String"- }- column "browser" {- type = "String"- }- column "os" {- type = "String"- }- column "viewport_width" {- type = "Int64"- }- column "viewport_height" {- type = "Int64"- }- column "referring_domain" {- type = "String"- }- column "utm_source" {- type = "String"- }- column "utm_medium" {- type = "String"- }- column "utm_campaign" {- type = "String"- }- column "utm_term" {- type = "String"- }- column "utm_content" {- type = "String"- }- column "country_code" {- type = "String"- }- column "city_name" {- type = "String"- }- column "region_code" {- type = "String"- }- column "region_name" {- type = "String"- }- column "has_gclid" {- type = "Bool"- }- column "has_gad_source_paid_search" {- type = "Bool"- }- column "has_fbclid" {- type = "Bool"- }- column "mat_metadata_backend" {- type = "Nullable(String)"- }- column "mat_metadata_loggedIn" {- type = "Nullable(Bool)"- }- column "persons_uniq_state" {- type = "AggregateFunction(uniq, UUID)"- }- column "sessions_uniq_state" {- type = "AggregateFunction(uniq, String)"- }- column "pageviews_count_state" {- type = "AggregateFunction(sum, Int64)"- }- column "bounces_count_state" {- type = "AggregateFunction(sum, Int64)"- }- column "total_session_duration_state" {- type = "AggregateFunction(sum, Int64)"- }- column "total_session_count_state" {- type = "AggregateFunction(sum, Int64)"- }- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"- }- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"- }- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.web_bounces_dimensional_preaggregated"- replica_name = "{replica}"- version_column = "computed_at"- }- }- table "sharded_web_goals_preaggregated" {- order_by = ["team_id", "job_id", "action_id", "time_window_start"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "toDateTime(expires_at)"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"- }- column "team_id" {- type = "Int64"- }- column "job_id" {- type = "UUID"- }- column "time_window_start" {- type = "DateTime64(6, 'UTC')"- }- column "action_id" {- type = "Int64"- }- column "count_state" {- type = "AggregateFunction(sum, Int64)"- }- column "unique_persons_state" {- type = "AggregateFunction(uniq, UUID)"- }- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"- }- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"- }- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.web_goals_preaggregated"- replica_name = "{replica}"- version_column = "computed_at"- }- }- table "sharded_web_overview_preaggregated" {- order_by = ["team_id", "job_id", "time_window_start"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "toDateTime(expires_at)"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"- }- column "team_id" {- type = "Int64"- }- column "job_id" {- type = "UUID"- }- column "time_window_start" {- type = "DateTime64(6, 'UTC')"- }- column "uniq_users_state" {- type = "AggregateFunction(uniq, UUID)"- }- column "uniq_sessions_state" {- type = "AggregateFunction(uniq, String)"- }- column "sum_pageviews_state" {- type = "AggregateFunction(sum, Int64)"- }- column "avg_duration_state" {- type = "AggregateFunction(avg, Float64)"- }- column "avg_bounce_state" {- type = "AggregateFunction(avg, Int64)"- }- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"- }- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"- }- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.web_overview_preaggregated"- replica_name = "{replica}"- version_column = "computed_at"- }- }- table "sharded_web_stats_dimensional_preaggregated" {- order_by = ["team_id", "job_id", "period_bucket", "host", "device_type", "pathname", "entry_pathname", "end_pathname", "browser", "os", "viewport_width", "viewport_height", "referring_domain", "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "country_code", "city_name", "region_code", "region_name", "has_gclid", "has_gad_source_paid_search", "has_fbclid", "mat_metadata_backend", "mat_metadata_loggedIn"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "toDateTime(expires_at)"- settings = {- allow_nullable_key = "1"- index_granularity = "8192"- ttl_only_drop_parts = "1"- }- column "team_id" {- type = "Int64"- }- column "job_id" {- type = "UUID"- }- column "period_bucket" {- type = "DateTime"- }- column "host" {- type = "String"- }- column "device_type" {- type = "String"- }- column "pathname" {- type = "String"- }- column "entry_pathname" {- type = "String"- }- column "end_pathname" {- type = "String"- }- column "browser" {- type = "String"- }- column "os" {- type = "String"- }- column "viewport_width" {- type = "Int64"- }- column "viewport_height" {- type = "Int64"- }- column "referring_domain" {- type = "String"- }- column "utm_source" {- type = "String"- }- column "utm_medium" {- type = "String"- }- column "utm_campaign" {- type = "String"- }- column "utm_term" {- type = "String"- }- column "utm_content" {- type = "String"- }- column "country_code" {- type = "String"- }- column "city_name" {- type = "String"- }- column "region_code" {- type = "String"- }- column "region_name" {- type = "String"- }- column "has_gclid" {- type = "Bool"- }- column "has_gad_source_paid_search" {- type = "Bool"- }- column "has_fbclid" {- type = "Bool"- }- column "mat_metadata_backend" {- type = "Nullable(String)"- }- column "mat_metadata_loggedIn" {- type = "Nullable(Bool)"- }- column "persons_uniq_state" {- type = "AggregateFunction(uniq, UUID)"- }- column "sessions_uniq_state" {- type = "AggregateFunction(uniq, String)"- }- column "pageviews_count_state" {- type = "AggregateFunction(sum, Int64)"- }- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"- }- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"- }- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.web_stats_dimensional_preaggregated"- replica_name = "{replica}"- version_column = "computed_at"- }- }- table "sharded_web_stats_frustration_preaggregated" {- order_by = ["team_id", "job_id", "breakdown_value", "time_window_start"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "toDateTime(expires_at)"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"- }- column "team_id" {- type = "Int64"- }- column "job_id" {- type = "UUID"- }- column "time_window_start" {- type = "DateTime64(6, 'UTC')"- }- column "breakdown_value" {- type = "String"- }- column "sum_rage_clicks_state" {- type = "AggregateFunction(sum, Int64)"- }- column "sum_dead_clicks_state" {- type = "AggregateFunction(sum, Int64)"- }- column "sum_errors_state" {- type = "AggregateFunction(sum, Int64)"- }- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"- }- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"- }- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.web_stats_frustration_preaggregated"- replica_name = "{replica}"- version_column = "computed_at"- }- }- table "sharded_web_stats_paths_preaggregated" {- order_by = ["team_id", "job_id", "breakdown_value", "time_window_start"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "toDateTime(expires_at)"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"- }- column "team_id" {- type = "Int64"- }- column "job_id" {- type = "UUID"- }- column "time_window_start" {- type = "DateTime64(6, 'UTC')"- }- column "breakdown_value" {- type = "String"- }- column "uniq_users_state" {- type = "AggregateFunction(uniq, UUID)"- }- column "sum_pageviews_state" {- type = "AggregateFunction(sum, Int64)"- }- column "avg_bounce_state" {- type = "AggregateFunction(avg, Nullable(Float64))"- }- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"- }- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"- }- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.web_stats_paths_preaggregated"- replica_name = "{replica}"- version_column = "computed_at"- }- }- table "sharded_web_stats_paths_preaggregated_pathkey" {- order_by = ["team_id", "time_window_start", "breakdown_value", "job_id"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "toDateTime(expires_at)"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"- }- column "team_id" {- type = "Int64"- }- column "job_id" {- type = "UUID"- }- column "time_window_start" {- type = "DateTime64(6, 'UTC')"- }- column "breakdown_value" {- type = "String"- }- column "uniq_users_state" {- type = "AggregateFunction(uniq, UUID)"- }- column "sum_pageviews_state" {- type = "AggregateFunction(sum, Int64)"- }- column "avg_bounce_state" {- type = "AggregateFunction(avg, Nullable(Float64))"- }- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"+ engine "kafka" {+ broker_list = "warpstream_ingestion"+ topic_list = "kafka_topic_list = 'clickhouse_property_values'"+ group_name = "kafka_group_name = 'clickhouse_property_values'"+ format = "kafka_format = 'JSONEachRow'"+ num_consumers = 8+ thread_per_consumer = true}- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"+ }+ table "marketing_conversions_preaggregated" {+ extend = "_marketing_conversions_preaggregated_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_marketing_conversions_preaggregated"+ sharding_key = "cityHash64(person_id)"}- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.web_stats_paths_preaggregated_pathkey"- replica_name = "{replica}"- version_column = "computed_at"+ }+ table "marketing_costs_preaggregated" {+ extend = "_marketing_costs_preaggregated_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_marketing_costs_preaggregated"+ sharding_key = "cityHash64(source_name, campaign_id)"}}- table "sharded_web_stats_preaggregated" {- order_by = ["team_id", "job_id", "breakdown_by", "time_window_start", "breakdown_value"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "toDateTime(expires_at)"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"+ table "marketing_touchpoints_preaggregated" {+ extend = "_marketing_touchpoints_preaggregated_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_marketing_touchpoints_preaggregated"+ sharding_key = "cityHash64(person_id)"}+ }+ table "message_assets" {column "team_id" {type = "Int64"}- column "job_id" {- type = "UUID"- }- column "time_window_start" {- type = "DateTime64(6, 'UTC')"+ column "function_kind" {+ type = "LowCardinality(String)"}- column "breakdown_by" {+ column "function_id" {type = "String"}- column "breakdown_value" {+ column "parent_run_id" {type = "String"}- column "uniq_users_state" {- type = "AggregateFunction(uniq, UUID)"- }- column "sum_pageviews_state" {- type = "AggregateFunction(sum, Int64)"- }- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"- }- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"- }- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.web_stats_preaggregated"- replica_name = "{replica}"- version_column = "computed_at"+ column "invocation_id" {+ type = "String"}- }- table "sharded_web_vitals_paths_preaggregated" {- order_by = ["team_id", "job_id", "time_window_start", "path"]- partition_by = "toYYYYMMDD(expires_at)"- ttl = "toDateTime(expires_at)"- settings = {- index_granularity = "8192"- ttl_only_drop_parts = "1"+ column "action_id" {+ type = "String"}- column "team_id" {- type = "Int64"+ column "kind" {+ type = "LowCardinality(String)"}- column "job_id" {- type = "UUID"+ column "distinct_id" {+ type = "String"}- column "time_window_start" {- type = "DateTime64(6, 'UTC')"+ column "person_id" {+ type = "String"}- column "path" {+ column "recipient" {type = "String"}- column "inp_quantiles_state" {- type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"+ column "subject" {+ type = "String"}- column "lcp_quantiles_state" {- type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"+ column "status" {+ type = "LowCardinality(String)"}- column "cls_quantiles_state" {- type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"+ column "sent_at" {+ type = "DateTime64(6, 'UTC')"}- column "fcp_quantiles_state" {- type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"+ column "version" {+ type = "UInt64"}- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"+ column "is_deleted" {+ type = "UInt8"}- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"+ column "html" {+ type = "String"}- engine "replicated_replacing_merge_tree" {- zoo_path = "/clickhouse/tables/{shard}/posthog.web_vitals_paths_preaggregated"- replica_name = "{replica}"- version_column = "computed_at"+ column "_timestamp" {+ type = "DateTime"}- }- table "web_bot_definition" {- column "id" {+ column "_offset" {type = "UInt64"}- column "parent_id" {+ column "_partition" {type = "UInt64"}- column "regexp" {- type = "String"- }- column "keys" {- type = "Array(String)"- }- column "values" {- type = "Array(String)"- }engine "distributed" {cluster_name = "aux"remote_database = "posthog"- remote_table = "sharded_web_bot_definition"- sharding_key = "sipHash64(id)"+ remote_table = "message_assets_data"}}- table "web_bounces_dimensional_preaggregated" {+ table "message_assets_data" {+ order_by = ["team_id", "function_kind", "function_id", "invocation_id", "action_id"]+ partition_by = "toYYYYMMDD(sent_at)"+ ttl = "toDate(sent_at) + toIntervalDay(30)"+ settings = {+ index_granularity = "1024"+ ttl_only_drop_parts = "1"+ }column "team_id" {type = "Int64"}- column "job_id" {- type = "UUID"+ column "function_kind" {+ type = "LowCardinality(String)"}- column "period_bucket" {- type = "DateTime"+ column "function_id" {+ type = "String"}- column "host" {+ column "parent_run_id" {type = "String"}- column "device_type" {+ column "invocation_id" {type = "String"}- column "entry_pathname" {+ column "action_id" {type = "String"}- column "end_pathname" {+ column "kind" {+ type = "LowCardinality(String)"+ }+ column "distinct_id" {type = "String"}- column "browser" {+ column "person_id" {type = "String"}- column "os" {+ column "recipient" {type = "String"}- column "viewport_width" {- type = "Int64"+ column "subject" {+ type = "String"}- column "viewport_height" {- type = "Int64"+ column "status" {+ type = "LowCardinality(String)"}- column "referring_domain" {- type = "String"+ column "sent_at" {+ type = "DateTime64(6, 'UTC')"}- column "utm_source" {- type = "String"+ column "version" {+ type = "UInt64"}- column "utm_medium" {- type = "String"+ column "is_deleted" {+ type = "UInt8"+ default = "0"}- column "utm_campaign" {- type = "String"+ column "html" {+ type = "String"+ codec = "ZSTD(3)"}- column "utm_term" {- type = "String"+ column "_timestamp" {+ type = "DateTime"}- column "utm_content" {- type = "String"+ column "_offset" {+ type = "UInt64"}- column "country_code" {- type = "String"+ column "_partition" {+ type = "UInt64"}- column "city_name" {- type = "String"+ index "parent_run_idx" {+ expr = "parent_run_id"+ type = "bloom_filter(0.01)"+ granularity = 1}- column "region_code" {- type = "String"+ index "distinct_id_idx" {+ expr = "distinct_id"+ type = "bloom_filter(0.01)"+ granularity = 1}- column "region_name" {- type = "String"+ index "person_id_idx" {+ expr = "person_id"+ type = "bloom_filter(0.01)"+ granularity = 1}- column "has_gclid" {- type = "Bool"+ index "recipient_idx" {+ expr = "recipient"+ type = "bloom_filter(0.01)"+ granularity = 1+ }+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/noshard/posthog.message_assets_data"+ replica_name = "{replica}-{shard}"+ version_column = "version"+ }+ }+ table "property_values" {+ order_by = ["team_id", "property_type", "property_key", "property_value"]+ ttl = "last_seen + toIntervalDay(30)"+ settings = {+ index_granularity = "8192"+ }+ column "team_id" {+ type = "Int64"+ codec = "DoubleDelta, ZSTD(1)"+ }+ column "property_type" {+ type = "LowCardinality(String)"+ }+ column "property_key" {+ type = "LowCardinality(String)"}- column "has_gad_source_paid_search" {- type = "Bool"+ column "property_value" {+ type = "String"}- column "has_fbclid" {- type = "Bool"+ column "property_count" {+ type = "SimpleAggregateFunction(sum, UInt64)"}- column "mat_metadata_backend" {- type = "Nullable(String)"+ column "last_seen" {+ type = "SimpleAggregateFunction(max, DateTime)"+ default = "now()"}- column "mat_metadata_loggedIn" {- type = "Nullable(Bool)"+ index "idx_property_value_ngrambf" {+ expr = "lower(property_value)"+ type = "ngrambf_v1(3, 32768, 3, 0)"+ granularity = 1}- column "persons_uniq_state" {- type = "AggregateFunction(uniq, UUID)"+ engine "replicated_aggregating_merge_tree" {+ zoo_path = "/clickhouse/tables/noshard/posthog.property_values"+ replica_name = "{replica}-{shard}"}- column "sessions_uniq_state" {- type = "AggregateFunction(uniq, String)"+ }+ table "property_values_distributed" {+ column "team_id" {+ type = "Int64"+ codec = "DoubleDelta, ZSTD(1)"}- column "pageviews_count_state" {- type = "AggregateFunction(sum, Int64)"+ column "property_type" {+ type = "LowCardinality(String)"}- column "bounces_count_state" {- type = "AggregateFunction(sum, Int64)"+ column "property_key" {+ type = "LowCardinality(String)"}- column "total_session_duration_state" {- type = "AggregateFunction(sum, Int64)"+ column "property_value" {+ type = "String"}- column "total_session_count_state" {- type = "AggregateFunction(sum, Int64)"+ column "property_count" {+ type = "SimpleAggregateFunction(sum, UInt64)"}- column "computed_at" {- type = "DateTime64(6, 'UTC')"+ column "last_seen" {+ type = "SimpleAggregateFunction(max, DateTime)"default = "now()"}- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"- }engine "distributed" {cluster_name = "aux"remote_database = "posthog"- remote_table = "sharded_web_bounces_dimensional_preaggregated"- sharding_key = "sipHash64(job_id)"+ remote_table = "property_values"}}- table "web_goals_preaggregated" {+ table "raw_error_tracking_fingerprint_issue_state" {+ order_by = ["team_id", "fingerprint"]+ settings = {+ index_granularity = "512"+ }column "team_id" {type = "Int64"}- column "job_id" {+ column "fingerprint" {+ type = "String"+ }+ column "issue_id" {type = "UUID"}- column "time_window_start" {- type = "DateTime64(6, 'UTC')"+ column "issue_name" {+ type = "Nullable(String)"}- column "action_id" {+ column "issue_description" {+ type = "Nullable(String)"+ }+ column "issue_status" {+ type = "String"+ }+ column "assigned_user_id" {+ type = "Nullable(Int64)"+ }+ column "assigned_role_id" {+ type = "Nullable(UUID)"+ }+ column "first_seen" {+ type = "DateTime64(3, 'UTC')"+ }+ column "is_deleted" {+ type = "Int8"+ }+ column "version" {type = "Int64"}- column "count_state" {- type = "AggregateFunction(sum, Int64)"+ column "_timestamp" {+ type = "DateTime"}- column "unique_persons_state" {- type = "AggregateFunction(uniq, UUID)"+ column "_offset" {+ type = "UInt64"}- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"+ column "_partition" {+ type = "UInt64"}- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"+ index "kafka_timestamp_minmax_raw_error_tracking_fingerprint_issue_state" {+ expr = "_timestamp"+ type = "minmax"+ granularity = 3+ }+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/noshard/posthog.raw_error_tracking_fingerprint_issue_state"+ replica_name = "{replica}-{shard}"+ version_column = "version"}+ }+ table "session_replay_features" {+ extend = "_session_replay_features_columns"engine "distributed" {cluster_name = "aux"remote_database = "posthog"- remote_table = "sharded_web_goals_preaggregated"- sharding_key = "sipHash64(job_id)"+ remote_table = "sharded_session_replay_features"+ sharding_key = "sipHash64(session_id)"}}- table "web_stats_dimensional_preaggregated" {- column "team_id" {- type = "Int64"+ table "sharded_conversion_goal_attributed_preaggregated" {+ order_by = ["team_id", "job_id", "person_id", "conversion_timestamp", "touchpoint_timestamp"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "expires_at"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"}- column "job_id" {- type = "UUID"+ extend = "_conversion_goal_attributed_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/noshard/posthog.conversion_goal_attributed_preaggregated"+ replica_name = "{replica}-{shard}"+ version_column = "computed_at"}- column "period_bucket" {- type = "DateTime"+ }+ table "sharded_experiment_metric_events_preaggregated" {+ order_by = ["team_id", "job_id", "entity_id", "timestamp", "event_uuid"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "expires_at"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"}- column "host" {- type = "String"+ extend = "_experiment_metric_events_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/noshard/posthog.experiment_metric_events_preaggregated"+ replica_name = "{replica}-{shard}"+ version_column = "computed_at"}- column "device_type" {- type = "String"+ }+ table "sharded_marketing_conversions_preaggregated" {+ order_by = ["team_id", "job_id", "person_id", "conversion_timestamp"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "expires_at"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"}- column "pathname" {- type = "String"+ extend = "_marketing_conversions_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/noshard/posthog.marketing_conversions_preaggregated"+ replica_name = "{replica}-{shard}"+ version_column = "computed_at"}- column "entry_pathname" {- type = "String"+ }+ table "sharded_marketing_costs_preaggregated" {+ order_by = ["team_id", "job_id", "source_name", "grain", "campaign_id", "ad_group_id", "ad_id", "cost_date"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "expires_at"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"}- column "end_pathname" {- type = "String"+ extend = "_marketing_costs_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/noshard/posthog.marketing_costs_preaggregated"+ replica_name = "{replica}-{shard}"+ version_column = "computed_at"}- column "browser" {- type = "String"+ }+ table "sharded_marketing_touchpoints_preaggregated" {+ order_by = ["team_id", "job_id", "person_id", "touchpoint_timestamp"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "expires_at"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"}- column "os" {- type = "String"+ extend = "_marketing_touchpoints_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/noshard/posthog.marketing_touchpoints_preaggregated"+ replica_name = "{replica}-{shard}"+ version_column = "computed_at"}- column "viewport_width" {- type = "Int64"+ }+ table "sharded_session_replay_features" {+ order_by = ["team_id", "session_id"]+ partition_by = "toYYYYMM(min_first_timestamp)"+ settings = {+ index_granularity = "512"}- column "viewport_height" {+ extend = "_session_replay_features_columns"+ engine "replicated_aggregating_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.session_replay_features"+ replica_name = "{replica}"+ }+ }+ table "sharded_usage_report_events_preagg" {+ order_by = ["date", "team_id", "person_mode", "lib", "event"]+ partition_by = "date"+ ttl = "date + toIntervalDay(14)"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"+ }+ column "date" {+ type = "Date"+ }+ column "team_id" {type = "Int64"}- column "referring_domain" {- type = "String"+ column "person_mode" {+ type = "LowCardinality(String)"}- column "utm_source" {- type = "String"+ column "lib" {+ type = "LowCardinality(String)"}- column "utm_medium" {+ column "event" {type = "String"}- column "utm_campaign" {- type = "String"+ column "distinct_events_unique" {+ type = "AggregateFunction(uniqExact, Tuple(UInt64, UInt64, UInt64))"}- column "utm_term" {- type = "String"+ column "event_count" {+ type = "AggregateFunction(sum, UInt64)"}- column "utm_content" {- type = "String"+ engine "replicated_aggregating_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.sharded_usage_report_events_preagg"+ replica_name = "{replica}"+ }+ }+ table "sharded_web_bot_definition" {+ order_by = ["id"]+ settings = {+ index_granularity = "8192"}- column "country_code" {- type = "String"+ extend = "_web_bot_definition_columns"+ engine "replicated_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.sharded_web_bot_definition"+ replica_name = "{replica}"}- column "city_name" {- type = "String"+ }+ table "sharded_web_bounces_dimensional_preaggregated" {+ order_by = ["team_id", "job_id", "period_bucket", "host", "device_type", "entry_pathname", "end_pathname", "browser", "os", "viewport_width", "viewport_height", "referring_domain", "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "country_code", "city_name", "region_code", "region_name", "has_gclid", "has_gad_source_paid_search", "has_fbclid", "mat_metadata_backend", "mat_metadata_loggedIn"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "toDateTime(expires_at)"+ settings = {+ allow_nullable_key = "1"+ index_granularity = "8192"+ ttl_only_drop_parts = "1"}- column "region_code" {- type = "String"+ extend = "_web_bounces_dimensional_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.web_bounces_dimensional_preaggregated"+ replica_name = "{replica}"+ version_column = "computed_at"}- column "region_name" {- type = "String"+ }+ table "sharded_web_goals_preaggregated" {+ order_by = ["team_id", "job_id", "action_id", "time_window_start"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "toDateTime(expires_at)"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"}- column "has_gclid" {- type = "Bool"+ extend = "_web_goals_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.web_goals_preaggregated"+ replica_name = "{replica}"+ version_column = "computed_at"}- column "has_gad_source_paid_search" {- type = "Bool"+ }+ table "sharded_web_overview_preaggregated" {+ order_by = ["team_id", "job_id", "time_window_start"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "toDateTime(expires_at)"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"}- column "has_fbclid" {- type = "Bool"+ column "team_id" {+ type = "Int64"}- column "mat_metadata_backend" {- type = "Nullable(String)"+ column "job_id" {+ type = "UUID"}- column "mat_metadata_loggedIn" {- type = "Nullable(Bool)"+ column "time_window_start" {+ type = "DateTime64(6, 'UTC')"}- column "persons_uniq_state" {+ column "uniq_users_state" {type = "AggregateFunction(uniq, UUID)"}- column "sessions_uniq_state" {+ column "uniq_sessions_state" {type = "AggregateFunction(uniq, String)"}- column "pageviews_count_state" {+ column "sum_pageviews_state" {type = "AggregateFunction(sum, Int64)"}+ column "avg_duration_state" {+ type = "AggregateFunction(avg, Float64)"+ }+ column "avg_bounce_state" {+ type = "AggregateFunction(avg, Int64)"+ }column "computed_at" {type = "DateTime64(6, 'UTC')"default = "now()"@@ -2393,14 +1573,51 @@ database "posthog" {type = "DateTime64(6, 'UTC')"default = "now() + toIntervalDay(7)"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "sharded_web_stats_dimensional_preaggregated"- sharding_key = "sipHash64(job_id)"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.web_overview_preaggregated"+ replica_name = "{replica}"+ version_column = "computed_at"}}- table "web_stats_frustration_preaggregated" {+ table "sharded_web_stats_dimensional_preaggregated" {+ order_by = ["team_id", "job_id", "period_bucket", "host", "device_type", "pathname", "entry_pathname", "end_pathname", "browser", "os", "viewport_width", "viewport_height", "referring_domain", "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "country_code", "city_name", "region_code", "region_name", "has_gclid", "has_gad_source_paid_search", "has_fbclid", "mat_metadata_backend", "mat_metadata_loggedIn"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "toDateTime(expires_at)"+ settings = {+ allow_nullable_key = "1"+ index_granularity = "8192"+ ttl_only_drop_parts = "1"+ }+ extend = "_web_stats_dimensional_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.web_stats_dimensional_preaggregated"+ replica_name = "{replica}"+ version_column = "computed_at"+ }+ }+ table "sharded_web_stats_frustration_preaggregated" {+ order_by = ["team_id", "job_id", "breakdown_value", "time_window_start"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "toDateTime(expires_at)"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"+ }+ extend = "_web_stats_frustration_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.web_stats_frustration_preaggregated"+ replica_name = "{replica}"+ version_column = "computed_at"+ }+ }+ table "sharded_web_stats_paths_preaggregated" {+ order_by = ["team_id", "job_id", "breakdown_value", "time_window_start"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "toDateTime(expires_at)"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"+ }column "team_id" {type = "Int64"}@@ -2413,14 +1630,14 @@ database "posthog" {column "breakdown_value" {type = "String"}- column "sum_rage_clicks_state" {- type = "AggregateFunction(sum, Int64)"+ column "uniq_users_state" {+ type = "AggregateFunction(uniq, UUID)"}- column "sum_dead_clicks_state" {+ column "sum_pageviews_state" {type = "AggregateFunction(sum, Int64)"}- column "sum_errors_state" {- type = "AggregateFunction(sum, Int64)"+ column "avg_bounce_state" {+ type = "AggregateFunction(avg, Nullable(Float64))"}column "computed_at" {type = "DateTime64(6, 'UTC')"@@ -2430,14 +1647,20 @@ database "posthog" {type = "DateTime64(6, 'UTC')"default = "now() + toIntervalDay(7)"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "sharded_web_stats_frustration_preaggregated"- sharding_key = "sipHash64(job_id)"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.web_stats_paths_preaggregated"+ replica_name = "{replica}"+ version_column = "computed_at"}}- table "web_stats_preaggregated" {+ table "sharded_web_stats_paths_preaggregated_pathkey" {+ order_by = ["team_id", "time_window_start", "breakdown_value", "job_id"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "toDateTime(expires_at)"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"+ }column "team_id" {type = "Int64"}@@ -2447,9 +1670,6 @@ database "posthog" {column "time_window_start" {type = "DateTime64(6, 'UTC')"}- column "breakdown_by" {- type = "String"- }column "breakdown_value" {type = "String"}@@ -2459,6 +1679,9 @@ database "posthog" {column "sum_pageviews_state" {type = "AggregateFunction(sum, Int64)"}+ column "avg_bounce_state" {+ type = "AggregateFunction(avg, Nullable(Float64))"+ }column "computed_at" {type = "DateTime64(6, 'UTC')"default = "now()"@@ -2467,46 +1690,98 @@ database "posthog" {type = "DateTime64(6, 'UTC')"default = "now() + toIntervalDay(7)"}- engine "distributed" {- cluster_name = "aux"- remote_database = "posthog"- remote_table = "sharded_web_stats_preaggregated"- sharding_key = "sipHash64(job_id)"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.web_stats_paths_preaggregated_pathkey"+ replica_name = "{replica}"+ version_column = "computed_at"}}- table "web_vitals_paths_preaggregated" {- column "team_id" {- type = "Int64"+ table "sharded_web_stats_preaggregated" {+ order_by = ["team_id", "job_id", "breakdown_by", "time_window_start", "breakdown_value"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "toDateTime(expires_at)"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"}- column "job_id" {- type = "UUID"+ extend = "_web_stats_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.web_stats_preaggregated"+ replica_name = "{replica}"+ version_column = "computed_at"}- column "time_window_start" {- type = "DateTime64(6, 'UTC')"+ }+ table "sharded_web_vitals_paths_preaggregated" {+ order_by = ["team_id", "job_id", "time_window_start", "path"]+ partition_by = "toYYYYMMDD(expires_at)"+ ttl = "toDateTime(expires_at)"+ settings = {+ index_granularity = "8192"+ ttl_only_drop_parts = "1"}- column "path" {- type = "String"+ extend = "_web_vitals_paths_preaggregated_columns"+ engine "replicated_replacing_merge_tree" {+ zoo_path = "/clickhouse/tables/{shard}/posthog.web_vitals_paths_preaggregated"+ replica_name = "{replica}"+ version_column = "computed_at"}- column "inp_quantiles_state" {- type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"+ }+ table "web_bot_definition" {+ extend = "_web_bot_definition_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_web_bot_definition"+ sharding_key = "sipHash64(id)"}- column "lcp_quantiles_state" {- type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"+ }+ table "web_bounces_dimensional_preaggregated" {+ extend = "_web_bounces_dimensional_preaggregated_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_web_bounces_dimensional_preaggregated"+ sharding_key = "sipHash64(job_id)"}- column "cls_quantiles_state" {- type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"+ }+ table "web_goals_preaggregated" {+ extend = "_web_goals_preaggregated_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_web_goals_preaggregated"+ sharding_key = "sipHash64(job_id)"}- column "fcp_quantiles_state" {- type = "AggregateFunction(quantiles(0.75, 0.9, 0.99), Float64)"+ }+ table "web_stats_dimensional_preaggregated" {+ extend = "_web_stats_dimensional_preaggregated_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_web_stats_dimensional_preaggregated"+ sharding_key = "sipHash64(job_id)"}- column "computed_at" {- type = "DateTime64(6, 'UTC')"- default = "now()"+ }+ table "web_stats_frustration_preaggregated" {+ extend = "_web_stats_frustration_preaggregated_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_web_stats_frustration_preaggregated"+ sharding_key = "sipHash64(job_id)"}- column "expires_at" {- type = "DateTime64(6, 'UTC')"- default = "now() + toIntervalDay(7)"+ }+ table "web_stats_preaggregated" {+ extend = "_web_stats_preaggregated_columns"+ engine "distributed" {+ cluster_name = "aux"+ remote_database = "posthog"+ remote_table = "sharded_web_stats_preaggregated"+ sharding_key = "sipHash64(job_id)"}+ }+ table "web_vitals_paths_preaggregated" {+ extend = "_web_vitals_paths_preaggregated_columns"engine "distributed" {cluster_name = "aux"remote_database = "posthog"