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.

chore(clickhouse): declare the sessions events proxy once (#88384)

Paweł Szczur2a3c18fa82f6
diff --git a/posthog/clickhouse/hcl/README.md b/posthog/clickhouse/hcl/README.md
index 15afe18bc2f4..1c5af35fe5d3 100644
--- a/posthog/clickhouse/hcl/README.md
+++ b/posthog/clickhouse/hcl/README.md
@@ -30,7 +30,8 @@ hcl/
roles/<role>/shared/ # objects on every env of one role
roles/<role>/prod/ # objects on both prod envs only
roles/<role>/<env>/ # per-env overlay: env-only objects + patch_* deltas; env ∈ local/dev/prod-us/prod-eu
- roles/data/shared/ # the events family declared once: the _event_base abstract + the events/sharded_events extenders
+ roles/shared/event_base.hcl # the _event_base abstract every events copy extends
+ roles/data/shared/ # the events family: the events/sharded_events extenders
roles/data/local/ # the rest of the local data node (migration-produced schema) + its patch_* deltas
duplicates-baseline.txt # objects still declared in >1 composed layer; check.sh gates on it, and it only shrinks
<layer>/sql/<object>.sql # view/MV query bodies extracted from a layer, referenced as query = file("sql/<object>.sql")
@@ -108,7 +109,7 @@ Two consequences:
- The **Cloud compose gate** job (in `ci-clickhouse-hcl-schema.yml`) dispatches to posthog-cloud-infra and composes the cloud envs against your PR head; it fails when a change breaks composition there (a patch that no longer resolves, a redeclaration, a validation error).
- A change that composes cleanly may still legitimately _shift_ cloud goldens (say, a new column on `_event_base`) — that regen happens in cloud-infra's next `base-ref` bump PR, not here, and is expected.
-The events family is the canonical example: `roles/data/shared/` declares `_event_base` + `sharded_events` + `events` once; cloud env deltas (mat\_ columns, env specs) live as patches in cloud-infra's `overrides/`.
+The events family is the canonical example: `roles/shared/event_base.hcl` declares `_event_base` once, `roles/data/shared/` declares the `sharded_events` and `events` extenders, `roles/sessions/shared/` the sessions replica of the proxy; cloud env deltas (mat\_ columns, env specs) live as patches in cloud-infra's `overrides/`.
Schema changes to those tables belong in `roles/data/shared/`, never re-declared per env.
## Making a change (edit HCL → migration)
@@ -135,7 +136,7 @@ build it yourself with `go build -o hclexp ./cmd/hclexp` in `../../../../python-
- an object on every role (the `query_log_archive` path, `custom_metrics_*` sub-views) → `roles/shared/`
- an object a specific set of roles co-hosts (a data table plus the nodes holding its Distributed proxies) → `roles/coshared/<member-set>/`, and wire a new set into each member's stack in `manifest.hcl`
- one role → `roles/<role>/shared/` (all its envs), `roles/<role>/prod/` (both prods), or `roles/<role>/<env>/` (one env)
- - the events family → the `_event_base` abstract + extenders in `roles/data/shared/`
+ - the events family → the `_event_base` abstract in `roles/shared/event_base.hcl`, its extenders in `roles/data/shared/` and `roles/sessions/shared/`
- a brand-new object → add it to the layer above **and**, if it's on a new role, add that role's
block to `manifest.hcl` (+ a golden for it).
- **declare an object once, everywhere it differs use a patch.**
diff --git a/posthog/clickhouse/hcl/duplicates-baseline.txt b/posthog/clickhouse/hcl/duplicates-baseline.txt
index f3b3c3f3684c..a243c0987aab 100644
--- a/posthog/clickhouse/hcl/duplicates-baseline.txt
+++ b/posthog/clickhouse/hcl/duplicates-baseline.txt
@@ -1,9 +1,11 @@
# Objects still declared in >=2 composed layers (database.name), sorted.
# The locate -duplicates guard in check.sh fails on any duplicate NOT listed here.
# This list only shrinks. Every remaining entry has a named blocker:
-# - events, raw_sessions_v3, channel_definition: events-family replicas whose
-# env copies carry mat_ columns; they resolve when the cloud env overlays
-# move to posthog-cloud-infra (Phase 2), not by a restructure here.
+# - raw_sessions_v3, channel_definition: the name covers a different object per
+# cluster. The local data node carries a Distributed proxy named
+# raw_sessions_v3 while the sessions nodes carry the storage table, and
+# channel_definition inverts that on prod-eu. One declaration cannot hold both
+# shapes, so these resolve when the sessions env layers move to
+# posthog-cloud-infra, not by a restructure here.
posthog.channel_definition
-posthog.events
posthog.raw_sessions_v3
diff --git a/posthog/clickhouse/hcl/migration.md b/posthog/clickhouse/hcl/migration.md
index 2984ecb62699..d87baf8f2f5f 100644
--- a/posthog/clickhouse/hcl/migration.md
+++ b/posthog/clickhouse/hcl/migration.md
@@ -115,7 +115,11 @@ table "sharded_events" {
Before that, the choice was to hang the CODECs on the abstract — forcing them onto the proxy too — or to stop sharing and repeat the column list.
-In this repo the cross-_role_ duplicates have been factored into `roles/coshared/<member-set>/` layers (one layer per set of stacks that co-host the objects), with env deltas as `patch_*` blocks in the env layers. The events family itself is the `_event_base` pattern live: `roles/data/shared/` declares the abstract core once, `sharded_events` and the `events` proxy extend it there, `roles/data/local` carries the local delta as `patch_table` blocks, and posthog-cloud-infra's `overrides/data/<env>/` carry the cloud deltas the same way. What keeps the baseline non-empty is only the `mat_`-column-bearing events replicas on the sessions roles, which resolve when those roles' cloud env overlays move to posthog-cloud-infra rather than by any restructure here.
+In this repo the cross-_role_ duplicates have been factored into `roles/coshared/<member-set>/` layers (one layer per set of stacks that co-host the objects), with env deltas as `patch_*` blocks in the env layers. The events family itself is the `_event_base` pattern live: `roles/shared/event_base.hcl` declares the abstract core once, `sharded_events` and the `events` proxy extend it in `roles/data/shared/`, the sessions nodes' replica of that proxy extends it in `roles/sessions/shared/`, `roles/data/local` carries the local delta as `patch_table` blocks, and posthog-cloud-infra's `overrides/data/<env>/` carry the cloud deltas the same way. The abstract sits in `roles/shared/` because that is the only layer every role composes, and an abstract emits nothing on a node that does not extend it.
+
+Positioning is the one thing a refinement cannot do: `after` is rejected on a column declared inside a table block, where declaration order is the order. A child that must interleave its own columns with inherited ones declares the table, then adds them in a `patch_table` with `after`. `roles/sessions/shared` does exactly that, which is why the sessions events proxy reproduces the live physical column order.
+
+What keeps the baseline non-empty is `raw_sessions_v3` and `channel_definition`, where one name covers a different object per cluster (storage on one, a Distributed proxy on the other). They resolve when the sessions cloud env layers move to posthog-cloud-infra rather than by any restructure here.
The purpose of the extension is to making the schema changes uniform across all envs: think adding a column or table shall be possible in one place and affect all envs.
diff --git a/posthog/clickhouse/hcl/roles/data/shared/tables.hcl b/posthog/clickhouse/hcl/roles/data/shared/tables.hcl
index ce2a4ea548ad..c4787ca2f3c8 100644
--- a/posthog/clickhouse/hcl/roles/data/shared/tables.hcl
+++ b/posthog/clickhouse/hcl/roles/data/shared/tables.hcl
@@ -1,138 +1,8 @@
-# The events family: one abstract core backing both the storage table and its
-# Distributed proxy (defined once, per migration.md). Env deltas are patch_table
-# blocks: roles/data/local here, overrides/data/<env> in posthog-cloud-infra.
+# The events family: the storage table and its Distributed proxy, both extending the
+# _event_base abstract in roles/shared (defined once, per migration.md). Env deltas
+# are patch_table blocks: roles/data/local here, overrides/data/<env> in
+# posthog-cloud-infra.
database "posthog" {
- table "_event_base" {
- abstract = true
- column "uuid" {
- type = "UUID"
- }
- column "event" {
- type = "String"
- }
- column "properties" {
- type = "String"
- }
- column "timestamp" {
- type = "DateTime64(6, 'UTC')"
- }
- column "team_id" {
- type = "Int64"
- }
- column "distinct_id" {
- type = "String"
- }
- column "created_at" {
- type = "DateTime64(6, 'UTC')"
- }
- column "$group_0" {
- type = "String"
- }
- column "$group_1" {
- type = "String"
- }
- column "$group_2" {
- type = "String"
- }
- column "$group_3" {
- type = "String"
- }
- column "$group_4" {
- type = "String"
- }
- column "$window_id" {
- type = "String"
- }
- column "$session_id" {
- type = "String"
- }
- column "inserted_at" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- default = "now64()"
- }
- column "person_mode" {
- type = "Enum8('full'=0, 'propertyless'=1, 'force_upgrade'=2)"
- }
- column "elements_chain_href" {
- type = "String"
- }
- column "elements_chain_texts" {
- type = "Array(String)"
- }
- column "elements_chain_ids" {
- type = "Array(String)"
- }
- column "elements_chain_elements" {
- type = "Array(Enum8('a'=1, 'button'=2, 'form'=3, 'input'=4, 'select'=5, 'textarea'=6, 'label'=7))"
- }
- column "properties_group_custom" {
- type = "Map(String, String)"
- }
- column "properties_group_feature_flags" {
- type = "Map(String, String)"
- }
- column "is_deleted" {
- type = "Bool"
- }
- column "person_properties_map_custom" {
- type = "Map(String, String)"
- }
- column "$session_id_uuid" {
- type = "Nullable(UInt128)"
- }
- column "consumer_breadcrumbs" {
- type = "Array(String)"
- }
- column "properties_group_ai" {
- type = "Map(String, String)"
- }
- column "mat_historical_migration" {
- type = "Nullable(String)"
- }
- column "mat_$ai_session_id" {
- type = "Nullable(String)"
- }
- column "mat_$ai_is_error" {
- type = "Nullable(String)"
- }
- column "dmat_string_0" {
- type = "Nullable(String)"
- }
- column "dmat_string_1" {
- type = "Nullable(String)"
- }
- column "dmat_string_2" {
- type = "Nullable(String)"
- }
- column "dmat_string_3" {
- type = "Nullable(String)"
- }
- column "dmat_string_4" {
- type = "Nullable(String)"
- }
- column "dmat_string_5" {
- type = "Nullable(String)"
- }
- column "dmat_string_6" {
- type = "Nullable(String)"
- }
- column "dmat_string_7" {
- type = "Nullable(String)"
- }
- column "dmat_string_8" {
- type = "Nullable(String)"
- }
- column "dmat_string_9" {
- type = "Nullable(String)"
- }
- column "historical_migration" {
- type = "Bool"
- }
- column "mat_$ai_prompt_name" {
- type = "Nullable(String)"
- }
- }
-
table "sharded_events" {
extend = "_event_base"
patch_column "properties" {
diff --git a/posthog/clickhouse/hcl/roles/sessions/prod-eu/tables.hcl b/posthog/clickhouse/hcl/roles/sessions/prod-eu/tables.hcl
index b091fdf95aeb..792108a48f16 100644
--- a/posthog/clickhouse/hcl/roles/sessions/prod-eu/tables.hcl
+++ b/posthog/clickhouse/hcl/roles/sessions/prod-eu/tables.hcl
@@ -21,1498 +21,47 @@ database "posthog" {
remote_table = "channel_definition"
}
}
- table "events" {
- column "uuid" {
- type = "UUID"
- }
- column "event" {
- type = "String"
- }
- column "properties" {
- type = "String"
- }
- column "timestamp" {
- type = "DateTime64(6, 'UTC')"
- }
- column "team_id" {
- type = "Int64"
- }
- column "distinct_id" {
- type = "String"
- }
- column "elements_hash" {
- type = "String"
- }
- column "created_at" {
- type = "DateTime64(6, 'UTC')"
- }
- column "_timestamp" {
- type = "DateTime"
- }
- column "_offset" {
- type = "UInt64"
- }
- column "elements_chain" {
- type = "String"
- }
- column "mat_$user_id" {
- type = "String"
- comment = "column_materializer::$user_id"
- }
- column "mat_$browser" {
- type = "String"
- comment = "column_materializer::$browser"
- }
- column "mat_$host" {
- type = "String"
- comment = "column_materializer::$host"
- }
- column "mat_$current_url" {
- type = "String"
- comment = "column_materializer::$current_url"
- }
- column "mat_distinct_id" {
- type = "String"
- comment = "column_materializer::distinct_id"
- }
- column "mat_action" {
- type = "String"
- comment = "column_materializer::action"
- }
- column "mat_origin" {
- type = "String"
- comment = "column_materializer::origin"
- }
- column "mat_email" {
- type = "String"
- comment = "column_materializer::email"
- }
- column "mat_key" {
- type = "String"
- comment = "column_materializer::key"
- }
- column "mat_insight" {
- type = "String"
- comment = "column_materializer::insight"
- }
- column "mat_$event_type" {
- type = "String"
- comment = "column_materializer::$event_type"
- }
- column "mat_created_by" {
- type = "String"
- comment = "column_materializer::created_by"
- }
- column "mat_total_event_actions_count" {
- type = "String"
- comment = "column_materializer::total_event_actions_count"
- }
- column "mat_is_demo_project" {
- type = "String"
- comment = "column_materializer::is_demo_project"
- }
- column "mat_$active_feature_flags" {
- type = "String"
- comment = "column_materializer::$active_feature_flags"
- }
- column "mat_filters_count" {
- type = "String"
- comment = "column_materializer::filters_count"
- }
- column "mat_utm_source" {
- type = "String"
- comment = "column_materializer::utm_source"
- }
- column "mat_apiErrorMessage" {
- type = "String"
- comment = "column_materializer::apiErrorMessage"
- }
- column "mat_$referring_domain" {
- type = "String"
- comment = "column_materializer::$referring_domain"
- }
- column "mat_statusCode" {
- type = "String"
- comment = "column_materializer::statusCode"
- }
- column "mat_deal_id" {
- type = "String"
- comment = "column_materializer::deal_id"
- }
- column "mat_realm" {
- type = "String"
- comment = "column_materializer::realm"
- }
- column "$group_0" {
- type = "String"
- comment = "column_materializer::$group_0"
- }
- column "$group_1" {
- type = "String"
- comment = "column_materializer::$group_1"
- }
- column "$group_2" {
- type = "String"
- comment = "column_materializer::$group_2"
- }
- column "$group_3" {
- type = "String"
- comment = "column_materializer::$group_3"
- }
- column "$group_4" {
- type = "String"
- comment = "column_materializer::$group_4"
- }
- column "mat_$lib" {
- type = "String"
- comment = "column_materializer::$lib"
- }
- column "mat_$os" {
- type = "String"
- comment = "column_materializer::$os"
- }
- column "mat_$initial_referrer" {
- type = "String"
- comment = "column_materializer::$initial_referrer"
- }
- column "mat_$app_version" {
- type = "String"
- comment = "column_materializer::$app_version"
- }
- column "mat_$initial_referring_domain" {
- type = "String"
- comment = "column_materializer::$initial_referring_domain"
- }
- column "mat_symbol" {
- type = "String"
- comment = "column_materializer::symbol"
- }
- column "mat_page" {
- type = "String"
- comment = "column_materializer::page"
- }
- column "mat_type" {
- type = "String"
- comment = "column_materializer::type"
- }
- column "mat_currentScreen" {
- type = "String"
- comment = "column_materializer::currentScreen"
- }
- column "mat_utm_campaign" {
- type = "String"
- comment = "column_materializer::utm_campaign"
- }
- column "mat_is_organization_first_user" {
- type = "String"
- comment = "column_materializer::is_organization_first_user"
- }
- column "mat_is_first_component_load" {
- type = "String"
- comment = "column_materializer::is_first_component_load"
- }
- column "mat_team" {
- type = "String"
- comment = "column_materializer::team"
- }
- column "mat_context" {
- type = "String"
- comment = "column_materializer::context"
- }
- column "mat_sdk" {
- type = "String"
- comment = "column_materializer::sdk"
- }
- column "mat_created_by_system" {
- type = "String"
- comment = "column_materializer::created_by_system"
- }
- column "mat_item_count" {
- type = "String"
- comment = "column_materializer::item_count"
- }
- column "mat_$ip" {
- type = "String"
- comment = "column_materializer::$ip"
- }
- column "mat_$referrer" {
- type = "String"
- comment = "column_materializer::$referrer"
- }
- column "mat_action_name" {
- type = "String"
- comment = "column_materializer::action_name"
- }
- column "mat_$geoip_country_name" {
- type = "String"
- comment = "column_materializer::$geoip_country_name"
- }
- column "mat_$device_model" {
- type = "String"
- comment = "column_materializer::$device_model"
- }
- column "mat_progress" {
- type = "String"
- comment = "column_materializer::progress"
- }
- column "mat_chain" {
- type = "String"
- comment = "column_materializer::chain"
- }
- column "mat_$device_type" {
- type = "String"
- comment = "column_materializer::$device_type"
- }
- column "mat_usd" {
- type = "String"
- comment = "column_materializer::usd"
- }
- column "mat_app_name" {
- type = "String"
- comment = "column_materializer::app_name"
- }
- column "mat_$screen_name" {
- type = "String"
- comment = "column_materializer::$screen_name"
- }
- column "mat_index" {
- type = "String"
- comment = "column_materializer::index"
- }
- column "mat_token" {
- type = "String"
- comment = "column_materializer::token"
- }
- column "mat_method" {
- type = "String"
- comment = "column_materializer::method"
- }
- column "mat_address" {
- type = "String"
- comment = "column_materializer::address"
- }
- column "mat_name" {
- type = "String"
- comment = "column_materializer::name"
- }
- column "mat_inviteCode" {
- type = "String"
- comment = "column_materializer::inviteCode"
- }
- column "$window_id" {
- type = "String"
- comment = "column_materializer::$window_id"
- }
- column "$session_id" {
- type = "String"
- comment = "column_materializer::$session_id"
- }
- column "mat_osName" {
- type = "String"
- comment = "column_materializer::osName"
- }
- column "mat_nativeBuildVersion" {
- type = "String"
- comment = "column_materializer::nativeBuildVersion"
- }
- column "mat_revenue" {
- type = "String"
- comment = "column_materializer::revenue"
- }
- column "group_0" {
- type = "String"
- alias = "`$group_0`"
- }
- column "group_1" {
- type = "String"
- alias = "`$group_1`"
- }
- column "group_2" {
- type = "String"
- alias = "`$group_2`"
- }
- column "group_3" {
- type = "String"
- alias = "`$group_3`"
- }
- column "group_4" {
- type = "String"
- alias = "`$group_4`"
- }
- column "alias_mat__user_id" {
- type = "String"
- alias = "`mat_$user_id`"
- }
- column "alias_mat__browser" {
- type = "String"
- alias = "`mat_$browser`"
- }
- column "alias_mat__host" {
- type = "String"
- alias = "`mat_$host`"
- }
- column "alias_mat__current_url" {
- type = "String"
- alias = "`mat_$current_url`"
- }
- column "alias_mat__event_type" {
- type = "String"
- alias = "`mat_$event_type`"
- }
- column "alias_mat__active_feature_flags" {
- type = "String"
- alias = "`mat_$active_feature_flags`"
- }
- column "alias_mat__referring_domain" {
- type = "String"
- alias = "`mat_$referring_domain`"
- }
- column "alias_mat__lib" {
- type = "String"
- alias = "`mat_$lib`"
- }
- column "alias_mat__os" {
- type = "String"
- alias = "`mat_$os`"
- }
- column "alias_mat__initial_referrer" {
- type = "String"
- alias = "`mat_$initial_referrer`"
- }
- column "alias_mat__app_version" {
- type = "String"
- alias = "`mat_$app_version`"
- }
- column "alias_mat__initial_referring_domain" {
- type = "String"
- alias = "`mat_$initial_referring_domain`"
- }
- column "alias_mat__ip" {
- type = "String"
- alias = "`mat_$ip`"
- }
- column "alias_mat__referrer" {
- type = "String"
- alias = "`mat_$referrer`"
- }
- column "alias_mat__geoip_country_name" {
- type = "String"
- alias = "`mat_$geoip_country_name`"
- }
- column "alias_mat__device_model" {
- type = "String"
- alias = "`mat_$device_model`"
- }
- column "alias_mat__device_type" {
- type = "String"
- alias = "`mat_$device_type`"
- }
- column "alias_mat__screen_name" {
- type = "String"
- alias = "`mat_$screen_name`"
- }
- column "person_id" {
- type = "UUID"
- }
- column "person_properties" {
- type = "String"
- }
- column "group0_properties" {
- type = "String"
- }
- column "group1_properties" {
- type = "String"
- }
- column "group2_properties" {
- type = "String"
- }
- column "group3_properties" {
- type = "String"
- }
- column "group4_properties" {
- type = "String"
- }
- column "person_created_at" {
- type = "DateTime64(3)"
- }
- column "group0_created_at" {
- type = "DateTime64(3)"
- }
- column "group1_created_at" {
- type = "DateTime64(3)"
- }
- column "group2_created_at" {
- type = "DateTime64(3)"
- }
- column "group3_created_at" {
- type = "DateTime64(3)"
- }
- column "group4_created_at" {
- type = "DateTime64(3)"
- }
- column "mat_arguments" {
- type = "String"
- comment = "column_materializer::properties::arguments"
- }
- column "mat_source" {
- type = "String"
- comment = "column_materializer::properties::source"
- }
- column "mat_pp_email" {
- type = "String"
- comment = "column_materializer::person_properties::email"
- }
- column "mat_$time" {
- type = "String"
- comment = "column_materializer::properties::$time"
- }
- column "mat_$pathname" {
- type = "String"
- comment = "column_materializer::properties::$pathname"
- }
- column "mat_$geoip_city_name" {
- type = "String"
- comment = "column_materializer::properties::$geoip_city_name"
- }
- column "mat_community_id" {
- type = "String"
- comment = "column_materializer::properties::community_id"
- }
- column "mat_thread_id" {
- type = "String"
- comment = "column_materializer::properties::thread_id"
- }
- column "mat_Event_productCode" {
- type = "String"
- comment = "column_materializer::properties::Event.productCode"
- }
- column "mat_env" {
- type = "String"
- comment = "column_materializer::properties::env"
- }
- column "mat_target" {
- type = "String"
- comment = "column_materializer::properties::target"
- }
- column "mat_Subscription_plan_amount" {
- type = "String"
- comment = "column_materializer::properties::Subscription.plan.amount"
- }
- column "mat_title" {
- type = "String"
- comment = "column_materializer::properties::title"
- }
- column "mat_Connection_app_name" {
- type = "String"
- comment = "column_materializer::properties::Connection.app.name"
- }
- column "mat_utm_medium" {
- type = "String"
- comment = "column_materializer::properties::utm_medium"
- }
- column "mat_Account_client_id" {
- type = "String"
- comment = "column_materializer::properties::Account.client_id"
- }
- column "mat_HTTP_Method" {
- type = "String"
- comment = "column_materializer::properties::HTTP Method"
- }
- column "mat_audio_duration" {
- type = "String"
- comment = "column_materializer::properties::audio_duration"
- }
- column "mat_duration" {
- type = "String"
- comment = "column_materializer::properties::duration"
- }
- column "mat_url" {
- type = "String"
- comment = "column_materializer::properties::url"
- }
- column "mat_group_id" {
- type = "String"
- comment = "column_materializer::properties::group_id"
- }
- column "mat_platform" {
- type = "String"
- comment = "column_materializer::properties::platform"
- }
- column "mat_pp_$browser" {
- type = "String"
- comment = "column_materializer::person_properties::$browser"
- }
- column "mat_payment_status" {
- type = "String"
- comment = "column_materializer::properties::payment_status"
- }
- column "mat_testSessionId" {
- type = "String"
- comment = "column_materializer::properties::testSessionId"
- }
- column "inserted_at" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- default = "now64()"
- }
- column "mat_$sent_at" {
- type = "String"
- comment = "column_materializer::properties::$sent_at"
- }
- column "mat_pp_companyName" {
- type = "String"
- comment = "column_materializer::person_properties::companyName"
- }
- column "mat_function" {
- type = "String"
- comment = "column_materializer::properties::function"
- }
- column "mat_store_url" {
- type = "String"
- comment = "column_materializer::properties::store_url"
- }
- column "mat_email_domain" {
- type = "String"
- comment = "column_materializer::properties::email_domain"
- }
- column "mat_institution_name" {
- type = "String"
- comment = "column_materializer::properties::institution_name"
- }
- column "mat_authentication_method" {
- type = "String"
- comment = "column_materializer::properties::authentication_method"
- }
- column "mat_initial_step" {
- type = "String"
- comment = "column_materializer::properties::initial_step"
- }
- column "mat_status_message" {
- type = "String"
- comment = "column_materializer::properties::status_message"
- }
- column "mat_mode" {
- type = "String"
- comment = "column_materializer::properties::mode"
- }
- column "mat_protocol" {
- type = "String"
- comment = "column_materializer::properties::protocol"
- }
- column "mat_job_type" {
- type = "String"
- comment = "column_materializer::properties::job_type"
- }
- column "mat_is_oauth" {
- type = "String"
- comment = "column_materializer::properties::is_oauth"
- }
- column "mat_is_initial_aggregation" {
- type = "String"
- comment = "column_materializer::properties::is_initial_aggregation"
- }
- column "mat_search_term" {
- type = "String"
- comment = "column_materializer::properties::search_term"
- }
- column "mat_valid_ach_accounts" {
- type = "String"
- comment = "column_materializer::properties::valid_ach_accounts"
- }
- column "mat_gross" {
- type = "String"
- comment = "column_materializer::properties::gross"
- }
- column "mat_orderType" {
- type = "String"
- comment = "column_materializer::properties::orderType"
- }
- column "mat_sku" {
- type = "String"
- comment = "column_materializer::properties::sku"
- }
- column "mat_dual_channel" {
- type = "String"
- comment = "column_materializer::properties::dual_channel"
- }
- column "mat_channel" {
- type = "String"
- comment = "column_materializer::properties::channel"
- }
- column "mat_workspaceId" {
- type = "String"
- comment = "column_materializer::properties::workspaceId"
- }
- column "mat_numberOfSecrets" {
- type = "String"
- comment = "column_materializer::properties::numberOfSecrets"
- }
- column "mat_organizations" {
- type = "String"
- comment = "column_materializer::properties::organizations"
- }
- column "mat_organization" {
- type = "String"
- comment = "column_materializer::properties::organization"
- }
- column "mat_contributionError" {
- type = "String"
- comment = "column_materializer::properties::contributionError"
- }
- column "mat_phone" {
- type = "String"
- comment = "column_materializer::properties::phone"
- }
- column "mat_$initial_pathname" {
- type = "String"
- comment = "column_materializer::properties::$initial_pathname"
- }
- column "mat_organization_name" {
- type = "String"
- comment = "column_materializer::properties::organization_name"
- }
- column "mat_category" {
- type = "String"
- comment = "column_materializer::properties::category"
- }
- column "mat_$lib_version" {
- type = "String"
- comment = "column_materializer::properties::$lib_version"
- }
- column "mat_pp_$initial_utm_campaign" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_utm_campaign"
- }
- column "mat_pp_$initial_utm_medium" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_utm_medium"
- }
- column "mat_pp_$initial_gclid" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_gclid"
- }
- column "mat_pp_$initial_gad_source" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_gad_source"
- }
- column "mat_pp_$initial_utm_source" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_utm_source"
- }
- column "mat_pp_$initial_referring_domain" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_referring_domain"
- }
- column "mat_pp_$initial_utm_term" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_utm_term"
- }
- column "mat_pp_$initial_utm_content" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_utm_content"
- }
- column "mat_pp_$initial_gbraid" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_gbraid::disabled"
- }
- column "mat_pp_$initial_wbraid" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_wbraid::disabled"
- }
- column "mat_pp_$initial_msclkid" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_msclkid"
- }
- column "mat_pp_$initial_fbclid" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_fbclid"
- }
- column "mat_$geoip_subdivision_1_code" {
- type = "String"
- comment = "column_materializer::properties::$geoip_subdivision_1_code"
- }
- column "mat_wlo_enabled" {
- type = "String"
- comment = "column_materializer::properties::wlo_enabled"
- }
- column "mat_$prev_pageview_max_scroll_percentage" {
- type = "String"
- comment = "column_materializer::properties::$prev_pageview_max_scroll_percentage"
- }
- column "mat_$prev_pageview_max_content_percentage" {
- type = "String"
- comment = "column_materializer::properties::$prev_pageview_max_content_percentage"
- }
- column "mat_$prev_pageview_pathname" {
- type = "String"
- comment = "column_materializer::properties::$prev_pageview_pathname"
- }
- column "mat_pp_$initial_pathname" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_pathname"
- }
- column "mat_pp_$geoip_country_code" {
- type = "String"
- comment = "column_materializer::person_properties::$geoip_country_code"
- }
- column "mat_pp_username" {
- type = "String"
- comment = "column_materializer::person_properties::username"
- }
- column "mat_pp_serverMasterclass" {
- type = "String"
- comment = "column_materializer::person_properties::serverMasterclass"
- }
- column "mat_content_length" {
- type = "String"
- comment = "column_materializer::properties::content_length"
- }
- column "mat_pp_serverMarketing" {
- type = "String"
- comment = "column_materializer::person_properties::serverMarketing"
- }
- column "mat_$browser_version" {
- type = "String"
- comment = "column_materializer::properties::$browser_version"
- }
- column "mat_pp_role" {
- type = "String"
- comment = "column_materializer::person_properties::role"
- }
- column "mat_pp_customer" {
- type = "String"
- comment = "column_materializer::person_properties::customer"
- }
- column "mat_event" {
- type = "String"
- comment = "column_materializer::properties::event"
- }
- column "mat_disable_institution_search" {
- type = "String"
- comment = "column_materializer::properties::disable_institution_search"
- }
- column "mat_is_first_event_for_user" {
- type = "String"
- comment = "column_materializer::properties::is_first_event_for_user"
- }
- column "mat_current_member_guid" {
- type = "String"
- comment = "column_materializer::properties::current_member_guid"
- }
- column "mat_user_agent" {
- type = "String"
- comment = "column_materializer::properties::user_agent"
- }
- column "mat_is_test_user" {
- type = "String"
- comment = "column_materializer::properties::is_test_user"
- }
- column "mat_referrer" {
- type = "String"
- comment = "column_materializer::properties::referrer"
- }
- column "mat_pp_$initial_current_url" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_current_url"
- }
- column "mat_most_recent_app_os" {
- type = "String"
- comment = "column_materializer::properties::most_recent_app_os"
- }
- column "mat_pp_hubspot_score" {
- type = "String"
- comment = "column_materializer::person_properties::hubspot_score"
- }
- column "mat_pp_id" {
- type = "String"
- comment = "column_materializer::person_properties::id"
- }
- column "mat_pp_$current_url" {
- type = "String"
- comment = "column_materializer::person_properties::$current_url"
- }
- column "mat_product_key" {
- type = "String"
- comment = "column_materializer::properties::product_key"
- }
- column "mat_Plan_type_and_filter" {
- type = "String"
- comment = "column_materializer::properties::Plan type and filter"
- }
- column "mat_$app_namespace" {
- type = "String"
- comment = "column_materializer::properties::$app_namespace"
- }
- column "mat_$os_name" {
- type = "String"
- comment = "column_materializer::properties::$os_name"
- }
- column "mat_pp_$os_name" {
- type = "String"
- comment = "column_materializer::person_properties::$os_name::disabled"
- }
- column "mat_pp_$app_version" {
- type = "String"
- comment = "column_materializer::person_properties::$app_version"
- }
- column "mat_subscriptionStatus" {
- type = "String"
- comment = "column_materializer::properties::subscriptionStatus"
- }
- column "mat_$screen_height" {
- type = "String"
- comment = "column_materializer::properties::$screen_height"
- }
- column "mat_$screen_width" {
- type = "String"
- comment = "column_materializer::properties::$screen_width"
- }
- column "mat_tag" {
- type = "String"
- comment = "column_materializer::properties::tag"
- }
- column "mat_$app_build" {
- type = "String"
- comment = "column_materializer::properties::$app_build"
- }
- column "mat_surface_tag" {
- type = "String"
- comment = "column_materializer::properties::surface_tag"
- }
- column "mat_survey_responses_count_in_period" {
- type = "String"
- comment = "column_materializer::properties::survey_responses_count_in_period"
- }
- column "mat_event_count_in_month" {
- type = "String"
- comment = "column_materializer::properties::event_count_in_month"
- }
- column "mat_ramp" {
- type = "String"
- comment = "column_materializer::properties::ramp"
- }
- column "mat_auto_chapters" {
- type = "String"
- comment = "column_materializer::properties::auto_chapters"
- }
- column "mat_sentiment_analysis" {
- type = "String"
- comment = "column_materializer::properties::sentiment_analysis"
- }
- column "mat_redact_pii" {
- type = "String"
- comment = "column_materializer::properties::redact_pii"
- }
- column "mat_content_safety" {
- type = "String"
- comment = "column_materializer::properties::content_safety"
- }
- column "mat_iab_categories" {
- type = "String"
- comment = "column_materializer::properties::iab_categories"
- }
- column "mat_auto_highlights" {
- type = "String"
- comment = "column_materializer::properties::auto_highlights"
- }
- column "mat_entity_detection" {
- type = "String"
- comment = "column_materializer::properties::entity_detection"
- }
- column "mat_summarization" {
- type = "String"
- comment = "column_materializer::properties::summarization"
- }
- column "mat_pp_val_region" {
- type = "String"
- comment = "column_materializer::person_properties::val_region"
- }
- column "mat_client_id" {
- type = "String"
- comment = "column_materializer::properties::client_id"
- }
- column "mat_$geoip_country_code" {
- type = "String"
- comment = "column_materializer::properties::$geoip_country_code"
- }
- column "mat_disfluencies" {
- type = "String"
- comment = "column_materializer::properties::disfluencies"
- }
- column "mat_filter_profanity" {
- type = "String"
- comment = "column_materializer::properties::filter_profanity"
- }
- column "mat_speaker_labels" {
- type = "String"
- comment = "column_materializer::properties::speaker_labels"
- }
- column "mat_language_detection" {
- type = "String"
- comment = "column_materializer::properties::language_detection"
- }
- column "mat_product_analytics_projected_amount" {
- type = "String"
- comment = "column_materializer::properties::product_analytics_projected_amount"
- }
- column "mat_recordings_projected_amount" {
- type = "String"
- comment = "column_materializer::properties::recordings_projected_amount"
- }
- column "mat_events_projected_amount" {
- type = "String"
- comment = "column_materializer::properties::events_projected_amount"
- }
- column "mat_session_replay_projected_amount" {
- type = "String"
- comment = "column_materializer::properties::session_replay_projected_amount"
- }
- column "mat_total_usd" {
- type = "String"
- comment = "column_materializer::properties::total_usd"
- }
- column "mat_stripe_amount_paid" {
- type = "String"
- comment = "column_materializer::properties::stripe_amount_paid"
- }
- column "mat_workspace" {
- type = "String"
- comment = "column_materializer::properties::workspace"
- }
- column "mat_created_at" {
- type = "String"
- comment = "column_materializer::properties::created_at"
- }
- column "mat_kind" {
- type = "String"
- comment = "column_materializer::properties::kind"
- }
- column "mat_product" {
- type = "String"
- comment = "column_materializer::properties::product"
- }
- column "mat_message" {
- type = "String"
- comment = "column_materializer::properties::message"
- }
- column "mat_initiator" {
- type = "String"
- comment = "column_materializer::properties::initiator"
- }
- column "mat_query" {
- type = "String"
- comment = "column_materializer::properties::query"
- }
- column "mat_$survey_id" {
- type = "String"
- comment = "column_materializer::properties::$survey_id"
- }
- column "mat_$survey_response_1" {
- type = "String"
- comment = "column_materializer::properties::$survey_response_1"
- }
- column "mat_ticketId" {
- type = "String"
- comment = "column_materializer::properties::ticketId"
- }
- column "mat_$survey_response" {
- type = "String"
- comment = "column_materializer::properties::$survey_response"
- }
- column "mat_conceptName" {
- type = "String"
- comment = "column_materializer::properties::conceptName"
- }
- column "mat_apiName" {
- type = "String"
- comment = "column_materializer::properties::apiName"
- }
- column "mat_workplace_billing_plan" {
- type = "String"
- comment = "column_materializer::properties::workplace_billing_plan"
- }
- column "mat_$el_text" {
- type = "String"
- comment = "column_materializer::properties::$el_text"
- }
- column "mat_recording_count_in_period" {
- type = "String"
- comment = "column_materializer::properties::recording_count_in_period"
- }
- column "mat_$os_version" {
- type = "String"
- comment = "column_materializer::properties::$os_version"
- }
- column "mat_orderId" {
- type = "String"
- comment = "column_materializer::properties::orderId"
- }
- column "mat_commit_sha" {
- type = "String"
- comment = "column_materializer::properties::commit_sha"
- }
- column "mat_$feature_flag_payloads" {
- type = "String"
- comment = "column_materializer::properties::$feature_flag_payloads"
- }
- column "mat_event_count_in_period" {
- type = "String"
- comment = "column_materializer::properties::event_count_in_period"
- }
- column "mat_$groups" {
- type = "String"
- comment = "column_materializer::properties::$groups"
- }
- column "mat_$feature_flag" {
- type = "String"
- comment = "column_materializer::properties::$feature_flag"
- }
- column "mat_utm_content" {
- type = "String"
- comment = "column_materializer::properties::utm_content"
- }
- column "mat_gclid" {
- type = "String"
- comment = "column_materializer::properties::gclid"
- }
- column "mat_gad_source" {
- type = "String"
- comment = "column_materializer::properties::gad_source"
- }
- column "mat_gbraid" {
- type = "String"
- comment = "column_materializer::properties::gbraid"
- }
- column "mat_wbraid" {
- type = "String"
- comment = "column_materializer::properties::wbraid"
- }
- column "mat_fbclid" {
- type = "String"
- comment = "column_materializer::properties::fbclid"
- }
- column "mat_msclkid" {
- type = "String"
- comment = "column_materializer::properties::msclkid"
- }
- column "mat_organization_id" {
- type = "String"
- comment = "column_materializer::properties::organization_id"
- }
- column "mat_owner_type" {
- type = "String"
- comment = "column_materializer::properties::owner_type"
- }
- column "mat_device_type" {
- type = "String"
- comment = "column_materializer::properties::device_type"
- }
- column "mat_$device_id" {
- type = "String"
- comment = "column_materializer::properties::$device_id"
- }
- column "mat_pp_$geoip_continent_name" {
- type = "String"
- comment = "column_materializer::person_properties::$geoip_continent_name"
- }
- column "mat_$feature_flag_response" {
- type = "String"
- comment = "column_materializer::properties::$feature_flag_response"
- }
- column "mat_pp_utm_source" {
- type = "String"
- comment = "column_materializer::person_properties::utm_source"
- }
- column "mat_pp_$referring_domain" {
- type = "String"
- comment = "column_materializer::person_properties::$referring_domain"
- }
- column "mat_pp_Email_Domain" {
- type = "String"
- comment = "column_materializer::person_properties::Email Domain"
- }
- column "mat_machine_id" {
- type = "String"
- comment = "column_materializer::properties::machine_id"
- }
- column "mat_user_email_domain" {
- type = "String"
- comment = "column_materializer::properties::user_email_domain"
- }
- column "mat_$lib_version__minor" {
- type = "String"
- comment = "column_materializer::properties::$lib_version__minor"
- }
- column "mat_region" {
- type = "String"
- comment = "column_materializer::properties::region"
- }
- column "mat_pp_user_email_domain" {
- type = "String"
- comment = "column_materializer::person_properties::user_email_domain"
- }
- column "mat_url_promotion_id" {
- type = "String"
- comment = "column_materializer::properties::url_promotion_id"
- }
- column "mat_$lib_custom_api_host" {
- type = "String"
- comment = "column_materializer::properties::$lib_custom_api_host"
- }
- column "person_mode" {
- type = "Enum8('full'=0, 'propertyless'=1, 'force_upgrade'=2)"
- }
- column "mat_user_platform" {
- type = "String"
- comment = "column_materializer::properties::user_platform"
- }
- column "mat_pp_$geoip_country_name" {
- type = "String"
- comment = "column_materializer::person_properties::$geoip_country_name"
- }
- column "mat_environment" {
- type = "String"
- comment = "column_materializer::properties::environment"
- }
- column "mat_customer_email" {
- type = "String"
- comment = "column_materializer::properties::customer_email"
- }
- column "mat_client_name" {
- type = "String"
- comment = "column_materializer::properties::client_name"
- }
- column "mat_screen_name" {
- type = "String"
- comment = "column_materializer::properties::screen_name"
- }
- column "mat_app_version" {
- type = "String"
- comment = "column_materializer::properties::app_version"
- }
- column "elements_chain_href" {
- type = "String"
- comment = "column_materializer::elements_chain::href"
- }
- column "elements_chain_texts" {
- type = "Array(String)"
- comment = "column_materializer::elements_chain::texts"
- }
- column "elements_chain_ids" {
- type = "Array(String)"
- comment = "column_materializer::elements_chain::ids"
- }
- column "elements_chain_elements" {
- type = "Array(Enum8('a'=1, 'button'=2, 'form'=3, 'input'=4, 'select'=5, 'textarea'=6, 'label'=7))"
- comment = "column_materializer::elements_chain::elements"
- }
- column "properties_group_custom" {
- type = "Map(String, String)"
- }
- column "properties_group_feature_flags" {
- type = "Map(String, String)"
- }
- column "is_deleted" {
- type = "Bool"
- }
- column "mat_subdomain" {
- type = "String"
- comment = "column_materializer::properties::subdomain"
- }
- column "mat_$device" {
- type = "String"
- comment = "column_materializer::properties::$device"
- }
- column "mat_id" {
- type = "String"
- comment = "column_materializer::properties::id"
- }
- column "mat_record_id" {
- type = "String"
- comment = "column_materializer::properties::record_id"
- }
- column "mat_referrer_id" {
- type = "String"
- comment = "column_materializer::properties::record_id"
- }
- column "mat_$exception_issue_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_issue_id"
- }
- column "mat_$exception_fingerprint" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_fingerprint"
- }
- column "mat_$web_vitals_LCP_value" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$web_vitals_LCP_value"
- }
- column "mat_$web_vitals_FCP_value" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$web_vitals_FCP_value"
- }
- column "mat_$web_vitals_CLS_value" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$web_vitals_CLS_value"
- }
- column "mat_$web_vitals_INP_value" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$web_vitals_INP_value"
- }
- column "mat_$viewport_width" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$viewport_width"
- }
- column "mat_$viewport_height" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$viewport_height"
- }
- column "mat_$anon_distinct_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$anon_distinct_id"
- }
- column "person_properties_map_custom" {
- type = "Map(String, String)"
- }
- column "mat_$ai_trace_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_trace_id"
- }
- column "mat_$ai_model" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_model"
- }
- column "mat_$ai_provider" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_provider"
- }
- column "mat_$ai_parent_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_parent_id"
- }
- column "mat_$ai_span_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_span_id"
- }
- column "mat_$ai_http_status" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_http_status"
- }
- column "mat_$exception_types" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_types"
- }
- column "mat_$exception_values" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_values"
- }
- column "mat_$exception_sources" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_sources"
- }
- column "mat_$exception_functions" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_functions"
- }
- column "$session_id_uuid" {
- type = "Nullable(UInt128)"
- }
- column "mat_$process_person_profile" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$process_person_profile"
- }
- column "consumer_breadcrumbs" {
- type = "Array(String)"
- }
- column "properties_group_ai" {
- type = "Map(String, String)"
- }
- column "mat_$is_identified" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$is_identified"
- }
- column "mat_historical_migration" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::historical_migration"
- }
- column "mat_$ai_session_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_session_id"
- }
- column "mat_$ai_is_error" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_is_error"
- }
- column "dmat_string_0" {
- type = "Nullable(String)"
- }
- column "dmat_string_1" {
- type = "Nullable(String)"
- }
- column "dmat_string_2" {
- type = "Nullable(String)"
- }
- column "dmat_string_3" {
- type = "Nullable(String)"
- }
- column "dmat_string_4" {
- type = "Nullable(String)"
- }
- column "dmat_string_5" {
- type = "Nullable(String)"
- }
- column "dmat_string_6" {
- type = "Nullable(String)"
- }
- column "dmat_string_7" {
- type = "Nullable(String)"
- }
- column "dmat_string_8" {
- type = "Nullable(String)"
- }
- column "dmat_string_9" {
- type = "Nullable(String)"
- }
- column "dmat_numeric_0" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_1" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_2" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_3" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_4" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_5" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_6" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_7" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_8" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_9" {
- type = "Nullable(Float64)"
- }
- column "dmat_bool_0" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_1" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_2" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_3" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_4" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_5" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_6" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_7" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_8" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_9" {
- type = "Nullable(UInt8)"
- }
- column "dmat_datetime_0" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_1" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_2" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_3" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_4" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_5" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_6" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_7" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_8" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_9" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "historical_migration" {
- type = "Bool"
- }
- column "mat_$ai_total_cost_usd" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_total_cost_usd"
- }
- column "properties_group_ai_large" {
- type = "Map(String, String)"
- }
- column "mat_$ai_prompt_name" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_prompt_name"
- }
+ # prod-eu materializes eight properties prod-us does not.
+ patch_table "events" {
column "mat_$ai_experiment_id" {
type = "Nullable(String)"
comment = "column_materializer::properties::$ai_experiment_id"
+ after = "mat_$ai_prompt_name"
}
column "mat_$survey_submission_id" {
type = "Nullable(String)"
comment = "column_materializer::properties::$survey_submission_id"
+ after = "mat_$ai_experiment_id"
}
column "mat_$geoip_subdivision_1_name" {
type = "Nullable(String)"
comment = "column_materializer::properties::$geoip_subdivision_1_name"
+ after = "mat_$survey_submission_id"
}
column "mat_$raw_user_agent" {
type = "Nullable(String)"
comment = "column_materializer::properties::$raw_user_agent"
+ after = "mat_$geoip_subdivision_1_name"
}
column "mat_$prev_pageview_duration" {
type = "Nullable(String)"
comment = "column_materializer::properties::$prev_pageview_duration"
+ after = "mat_$raw_user_agent"
}
column "mat_pp_$initial_host" {
type = "Nullable(String)"
comment = "column_materializer::person_properties::$initial_host"
+ after = "mat_$prev_pageview_duration"
}
column "mat_pp_$initial_url" {
type = "Nullable(String)"
comment = "column_materializer::person_properties::$initial_url"
+ after = "mat_pp_$initial_host"
}
column "mat_pp_$initial_geoip_country_name" {
type = "Nullable(String)"
comment = "column_materializer::person_properties::$initial_geoip_country_name"
- }
- engine "distributed" {
- cluster_name = "posthog"
- remote_database = "posthog"
- remote_table = "sharded_events"
- sharding_key = "sipHash64(distinct_id)"
+ after = "mat_pp_$initial_url"
}
}
table "raw_sessions_v3" {
diff --git a/posthog/clickhouse/hcl/roles/sessions/prod-us/tables.hcl b/posthog/clickhouse/hcl/roles/sessions/prod-us/tables.hcl
index 0a60c70a07f7..42be3931ffcc 100644
--- a/posthog/clickhouse/hcl/roles/sessions/prod-us/tables.hcl
+++ b/posthog/clickhouse/hcl/roles/sessions/prod-us/tables.hcl
@@ -25,1468 +25,6 @@ database "posthog" {
replica_name = "{replica}-{shard}"
}
}
- table "events" {
- column "uuid" {
- type = "UUID"
- }
- column "event" {
- type = "String"
- }
- column "properties" {
- type = "String"
- }
- column "timestamp" {
- type = "DateTime64(6, 'UTC')"
- }
- column "team_id" {
- type = "Int64"
- }
- column "distinct_id" {
- type = "String"
- }
- column "elements_hash" {
- type = "String"
- }
- column "created_at" {
- type = "DateTime64(6, 'UTC')"
- }
- column "_timestamp" {
- type = "DateTime"
- }
- column "_offset" {
- type = "UInt64"
- }
- column "elements_chain" {
- type = "String"
- }
- column "mat_$user_id" {
- type = "String"
- comment = "column_materializer::$user_id"
- }
- column "mat_$browser" {
- type = "String"
- comment = "column_materializer::$browser"
- }
- column "mat_$host" {
- type = "String"
- comment = "column_materializer::$host"
- }
- column "mat_$current_url" {
- type = "String"
- comment = "column_materializer::$current_url"
- }
- column "mat_distinct_id" {
- type = "String"
- comment = "column_materializer::distinct_id"
- }
- column "mat_action" {
- type = "String"
- comment = "column_materializer::action"
- }
- column "mat_origin" {
- type = "String"
- comment = "column_materializer::origin"
- }
- column "mat_email" {
- type = "String"
- comment = "column_materializer::email"
- }
- column "mat_key" {
- type = "String"
- comment = "column_materializer::key"
- }
- column "mat_insight" {
- type = "String"
- comment = "column_materializer::insight"
- }
- column "mat_$event_type" {
- type = "String"
- comment = "column_materializer::$event_type"
- }
- column "mat_created_by" {
- type = "String"
- comment = "column_materializer::created_by"
- }
- column "mat_total_event_actions_count" {
- type = "String"
- comment = "column_materializer::total_event_actions_count"
- }
- column "mat_is_demo_project" {
- type = "String"
- comment = "column_materializer::is_demo_project"
- }
- column "mat_$active_feature_flags" {
- type = "String"
- comment = "column_materializer::$active_feature_flags"
- }
- column "mat_filters_count" {
- type = "String"
- comment = "column_materializer::filters_count"
- }
- column "mat_utm_source" {
- type = "String"
- comment = "column_materializer::utm_source"
- }
- column "mat_apiErrorMessage" {
- type = "String"
- comment = "column_materializer::apiErrorMessage"
- }
- column "mat_$referring_domain" {
- type = "String"
- comment = "column_materializer::$referring_domain"
- }
- column "mat_statusCode" {
- type = "String"
- comment = "column_materializer::statusCode"
- }
- column "mat_deal_id" {
- type = "String"
- comment = "column_materializer::deal_id"
- }
- column "mat_realm" {
- type = "String"
- comment = "column_materializer::realm"
- }
- column "$group_0" {
- type = "String"
- comment = "column_materializer::$group_0"
- }
- column "$group_1" {
- type = "String"
- comment = "column_materializer::$group_1"
- }
- column "$group_2" {
- type = "String"
- comment = "column_materializer::$group_2"
- }
- column "$group_3" {
- type = "String"
- comment = "column_materializer::$group_3"
- }
- column "$group_4" {
- type = "String"
- comment = "column_materializer::$group_4"
- }
- column "mat_$lib" {
- type = "String"
- comment = "column_materializer::$lib"
- }
- column "mat_$os" {
- type = "String"
- comment = "column_materializer::$os"
- }
- column "mat_$initial_referrer" {
- type = "String"
- comment = "column_materializer::$initial_referrer"
- }
- column "mat_$app_version" {
- type = "String"
- comment = "column_materializer::$app_version"
- }
- column "mat_$initial_referring_domain" {
- type = "String"
- comment = "column_materializer::$initial_referring_domain"
- }
- column "mat_symbol" {
- type = "String"
- comment = "column_materializer::symbol"
- }
- column "mat_page" {
- type = "String"
- comment = "column_materializer::page"
- }
- column "mat_type" {
- type = "String"
- comment = "column_materializer::type"
- }
- column "mat_currentScreen" {
- type = "String"
- comment = "column_materializer::currentScreen"
- }
- column "mat_utm_campaign" {
- type = "String"
- comment = "column_materializer::utm_campaign"
- }
- column "mat_is_organization_first_user" {
- type = "String"
- comment = "column_materializer::is_organization_first_user"
- }
- column "mat_is_first_component_load" {
- type = "String"
- comment = "column_materializer::is_first_component_load"
- }
- column "mat_team" {
- type = "String"
- comment = "column_materializer::team"
- }
- column "mat_context" {
- type = "String"
- comment = "column_materializer::context"
- }
- column "mat_sdk" {
- type = "String"
- comment = "column_materializer::sdk"
- }
- column "mat_created_by_system" {
- type = "String"
- comment = "column_materializer::created_by_system"
- }
- column "mat_item_count" {
- type = "String"
- comment = "column_materializer::item_count"
- }
- column "mat_$ip" {
- type = "String"
- comment = "column_materializer::$ip"
- }
- column "mat_$referrer" {
- type = "String"
- comment = "column_materializer::$referrer"
- }
- column "mat_action_name" {
- type = "String"
- comment = "column_materializer::action_name"
- }
- column "mat_$geoip_country_name" {
- type = "String"
- comment = "column_materializer::$geoip_country_name"
- }
- column "mat_$device_model" {
- type = "String"
- comment = "column_materializer::$device_model"
- }
- column "mat_progress" {
- type = "String"
- comment = "column_materializer::progress"
- }
- column "mat_chain" {
- type = "String"
- comment = "column_materializer::chain"
- }
- column "mat_$device_type" {
- type = "String"
- comment = "column_materializer::$device_type"
- }
- column "mat_usd" {
- type = "String"
- comment = "column_materializer::usd"
- }
- column "mat_app_name" {
- type = "String"
- comment = "column_materializer::app_name"
- }
- column "mat_$screen_name" {
- type = "String"
- comment = "column_materializer::$screen_name"
- }
- column "mat_index" {
- type = "String"
- comment = "column_materializer::index"
- }
- column "mat_token" {
- type = "String"
- comment = "column_materializer::token"
- }
- column "mat_method" {
- type = "String"
- comment = "column_materializer::method"
- }
- column "mat_address" {
- type = "String"
- comment = "column_materializer::address"
- }
- column "mat_name" {
- type = "String"
- comment = "column_materializer::name"
- }
- column "mat_inviteCode" {
- type = "String"
- comment = "column_materializer::inviteCode"
- }
- column "$window_id" {
- type = "String"
- comment = "column_materializer::$window_id"
- }
- column "$session_id" {
- type = "String"
- comment = "column_materializer::$session_id"
- }
- column "mat_osName" {
- type = "String"
- comment = "column_materializer::osName"
- }
- column "mat_nativeBuildVersion" {
- type = "String"
- comment = "column_materializer::nativeBuildVersion"
- }
- column "mat_revenue" {
- type = "String"
- comment = "column_materializer::revenue"
- }
- column "group_0" {
- type = "String"
- alias = "`$group_0`"
- }
- column "group_1" {
- type = "String"
- alias = "`$group_1`"
- }
- column "group_2" {
- type = "String"
- alias = "`$group_2`"
- }
- column "group_3" {
- type = "String"
- alias = "`$group_3`"
- }
- column "group_4" {
- type = "String"
- alias = "`$group_4`"
- }
- column "alias_mat__user_id" {
- type = "String"
- alias = "`mat_$user_id`"
- }
- column "alias_mat__browser" {
- type = "String"
- alias = "`mat_$browser`"
- }
- column "alias_mat__host" {
- type = "String"
- alias = "`mat_$host`"
- }
- column "alias_mat__current_url" {
- type = "String"
- alias = "`mat_$current_url`"
- }
- column "alias_mat__event_type" {
- type = "String"
- alias = "`mat_$event_type`"
- }
- column "alias_mat__active_feature_flags" {
- type = "String"
- alias = "`mat_$active_feature_flags`"
- }
- column "alias_mat__referring_domain" {
- type = "String"
- alias = "`mat_$referring_domain`"
- }
- column "alias_mat__lib" {
- type = "String"
- alias = "`mat_$lib`"
- }
- column "alias_mat__os" {
- type = "String"
- alias = "`mat_$os`"
- }
- column "alias_mat__initial_referrer" {
- type = "String"
- alias = "`mat_$initial_referrer`"
- }
- column "alias_mat__app_version" {
- type = "String"
- alias = "`mat_$app_version`"
- }
- column "alias_mat__initial_referring_domain" {
- type = "String"
- alias = "`mat_$initial_referring_domain`"
- }
- column "alias_mat__ip" {
- type = "String"
- alias = "`mat_$ip`"
- }
- column "alias_mat__referrer" {
- type = "String"
- alias = "`mat_$referrer`"
- }
- column "alias_mat__geoip_country_name" {
- type = "String"
- alias = "`mat_$geoip_country_name`"
- }
- column "alias_mat__device_model" {
- type = "String"
- alias = "`mat_$device_model`"
- }
- column "alias_mat__device_type" {
- type = "String"
- alias = "`mat_$device_type`"
- }
- column "alias_mat__screen_name" {
- type = "String"
- alias = "`mat_$screen_name`"
- }
- column "person_id" {
- type = "UUID"
- }
- column "person_properties" {
- type = "String"
- }
- column "group0_properties" {
- type = "String"
- }
- column "group1_properties" {
- type = "String"
- }
- column "group2_properties" {
- type = "String"
- }
- column "group3_properties" {
- type = "String"
- }
- column "group4_properties" {
- type = "String"
- }
- column "person_created_at" {
- type = "DateTime64(3)"
- }
- column "group0_created_at" {
- type = "DateTime64(3)"
- }
- column "group1_created_at" {
- type = "DateTime64(3)"
- }
- column "group2_created_at" {
- type = "DateTime64(3)"
- }
- column "group3_created_at" {
- type = "DateTime64(3)"
- }
- column "group4_created_at" {
- type = "DateTime64(3)"
- }
- column "mat_arguments" {
- type = "String"
- comment = "column_materializer::properties::arguments"
- }
- column "mat_source" {
- type = "String"
- comment = "column_materializer::properties::source"
- }
- column "mat_pp_email" {
- type = "String"
- comment = "column_materializer::person_properties::email"
- }
- column "mat_$time" {
- type = "String"
- comment = "column_materializer::properties::$time"
- }
- column "mat_$pathname" {
- type = "String"
- comment = "column_materializer::properties::$pathname"
- }
- column "mat_$geoip_city_name" {
- type = "String"
- comment = "column_materializer::properties::$geoip_city_name"
- }
- column "mat_community_id" {
- type = "String"
- comment = "column_materializer::properties::community_id"
- }
- column "mat_thread_id" {
- type = "String"
- comment = "column_materializer::properties::thread_id"
- }
- column "mat_Event_productCode" {
- type = "String"
- comment = "column_materializer::properties::Event.productCode"
- }
- column "mat_env" {
- type = "String"
- comment = "column_materializer::properties::env"
- }
- column "mat_target" {
- type = "String"
- comment = "column_materializer::properties::target"
- }
- column "mat_Subscription_plan_amount" {
- type = "String"
- comment = "column_materializer::properties::Subscription.plan.amount"
- }
- column "mat_title" {
- type = "String"
- comment = "column_materializer::properties::title"
- }
- column "mat_Connection_app_name" {
- type = "String"
- comment = "column_materializer::properties::Connection.app.name"
- }
- column "mat_utm_medium" {
- type = "String"
- comment = "column_materializer::properties::utm_medium"
- }
- column "mat_Account_client_id" {
- type = "String"
- comment = "column_materializer::properties::Account.client_id"
- }
- column "mat_HTTP_Method" {
- type = "String"
- comment = "column_materializer::properties::HTTP Method"
- }
- column "mat_audio_duration" {
- type = "String"
- comment = "column_materializer::properties::audio_duration"
- }
- column "mat_duration" {
- type = "String"
- comment = "column_materializer::properties::duration"
- }
- column "mat_url" {
- type = "String"
- comment = "column_materializer::properties::url"
- }
- column "mat_group_id" {
- type = "String"
- comment = "column_materializer::properties::group_id"
- }
- column "mat_platform" {
- type = "String"
- comment = "column_materializer::properties::platform"
- }
- column "mat_pp_$browser" {
- type = "String"
- comment = "column_materializer::person_properties::$browser"
- }
- column "mat_payment_status" {
- type = "String"
- comment = "column_materializer::properties::payment_status"
- }
- column "mat_testSessionId" {
- type = "String"
- comment = "column_materializer::properties::testSessionId"
- }
- column "inserted_at" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- default = "now64()"
- }
- column "mat_$sent_at" {
- type = "String"
- comment = "column_materializer::properties::$sent_at"
- }
- column "mat_pp_companyName" {
- type = "String"
- comment = "column_materializer::person_properties::companyName"
- }
- column "mat_function" {
- type = "String"
- comment = "column_materializer::properties::function"
- }
- column "mat_store_url" {
- type = "String"
- comment = "column_materializer::properties::store_url"
- }
- column "mat_email_domain" {
- type = "String"
- comment = "column_materializer::properties::email_domain"
- }
- column "mat_institution_name" {
- type = "String"
- comment = "column_materializer::properties::institution_name"
- }
- column "mat_authentication_method" {
- type = "String"
- comment = "column_materializer::properties::authentication_method"
- }
- column "mat_initial_step" {
- type = "String"
- comment = "column_materializer::properties::initial_step"
- }
- column "mat_status_message" {
- type = "String"
- comment = "column_materializer::properties::status_message"
- }
- column "mat_mode" {
- type = "String"
- comment = "column_materializer::properties::mode"
- }
- column "mat_protocol" {
- type = "String"
- comment = "column_materializer::properties::protocol"
- }
- column "mat_job_type" {
- type = "String"
- comment = "column_materializer::properties::job_type"
- }
- column "mat_is_oauth" {
- type = "String"
- comment = "column_materializer::properties::is_oauth"
- }
- column "mat_is_initial_aggregation" {
- type = "String"
- comment = "column_materializer::properties::is_initial_aggregation"
- }
- column "mat_search_term" {
- type = "String"
- comment = "column_materializer::properties::search_term"
- }
- column "mat_valid_ach_accounts" {
- type = "String"
- comment = "column_materializer::properties::valid_ach_accounts"
- }
- column "mat_gross" {
- type = "String"
- comment = "column_materializer::properties::gross"
- }
- column "mat_orderType" {
- type = "String"
- comment = "column_materializer::properties::orderType"
- }
- column "mat_sku" {
- type = "String"
- comment = "column_materializer::properties::sku"
- }
- column "mat_dual_channel" {
- type = "String"
- comment = "column_materializer::properties::dual_channel"
- }
- column "mat_channel" {
- type = "String"
- comment = "column_materializer::properties::channel"
- }
- column "mat_workspaceId" {
- type = "String"
- comment = "column_materializer::properties::workspaceId"
- }
- column "mat_numberOfSecrets" {
- type = "String"
- comment = "column_materializer::properties::numberOfSecrets"
- }
- column "mat_organizations" {
- type = "String"
- comment = "column_materializer::properties::organizations"
- }
- column "mat_organization" {
- type = "String"
- comment = "column_materializer::properties::organization"
- }
- column "mat_contributionError" {
- type = "String"
- comment = "column_materializer::properties::contributionError"
- }
- column "mat_phone" {
- type = "String"
- comment = "column_materializer::properties::phone"
- }
- column "mat_$initial_pathname" {
- type = "String"
- comment = "column_materializer::properties::$initial_pathname"
- }
- column "mat_organization_name" {
- type = "String"
- comment = "column_materializer::properties::organization_name"
- }
- column "mat_category" {
- type = "String"
- comment = "column_materializer::properties::category"
- }
- column "mat_$lib_version" {
- type = "String"
- comment = "column_materializer::properties::$lib_version"
- }
- column "mat_pp_$initial_utm_campaign" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_utm_campaign"
- }
- column "mat_pp_$initial_utm_medium" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_utm_medium"
- }
- column "mat_pp_$initial_gclid" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_gclid"
- }
- column "mat_pp_$initial_gad_source" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_gad_source"
- }
- column "mat_pp_$initial_utm_source" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_utm_source"
- }
- column "mat_pp_$initial_referring_domain" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_referring_domain"
- }
- column "mat_pp_$initial_utm_term" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_utm_term"
- }
- column "mat_pp_$initial_utm_content" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_utm_content"
- }
- column "mat_pp_$initial_gbraid" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_gbraid::disabled"
- }
- column "mat_pp_$initial_wbraid" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_wbraid::disabled"
- }
- column "mat_pp_$initial_msclkid" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_msclkid"
- }
- column "mat_pp_$initial_fbclid" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_fbclid"
- }
- column "mat_$geoip_subdivision_1_code" {
- type = "String"
- comment = "column_materializer::properties::$geoip_subdivision_1_code"
- }
- column "mat_wlo_enabled" {
- type = "String"
- comment = "column_materializer::properties::wlo_enabled"
- }
- column "mat_$prev_pageview_max_scroll_percentage" {
- type = "String"
- comment = "column_materializer::properties::$prev_pageview_max_scroll_percentage"
- }
- column "mat_$prev_pageview_max_content_percentage" {
- type = "String"
- comment = "column_materializer::properties::$prev_pageview_max_content_percentage"
- }
- column "mat_$prev_pageview_pathname" {
- type = "String"
- comment = "column_materializer::properties::$prev_pageview_pathname"
- }
- column "mat_pp_$initial_pathname" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_pathname"
- }
- column "mat_pp_$geoip_country_code" {
- type = "String"
- comment = "column_materializer::person_properties::$geoip_country_code"
- }
- column "mat_pp_username" {
- type = "String"
- comment = "column_materializer::person_properties::username"
- }
- column "mat_pp_serverMasterclass" {
- type = "String"
- comment = "column_materializer::person_properties::serverMasterclass"
- }
- column "mat_content_length" {
- type = "String"
- comment = "column_materializer::properties::content_length"
- }
- column "mat_pp_serverMarketing" {
- type = "String"
- comment = "column_materializer::person_properties::serverMarketing"
- }
- column "mat_$browser_version" {
- type = "String"
- comment = "column_materializer::properties::$browser_version"
- }
- column "mat_pp_role" {
- type = "String"
- comment = "column_materializer::person_properties::role"
- }
- column "mat_pp_customer" {
- type = "String"
- comment = "column_materializer::person_properties::customer"
- }
- column "mat_event" {
- type = "String"
- comment = "column_materializer::properties::event"
- }
- column "mat_disable_institution_search" {
- type = "String"
- comment = "column_materializer::properties::disable_institution_search"
- }
- column "mat_is_first_event_for_user" {
- type = "String"
- comment = "column_materializer::properties::is_first_event_for_user"
- }
- column "mat_current_member_guid" {
- type = "String"
- comment = "column_materializer::properties::current_member_guid"
- }
- column "mat_user_agent" {
- type = "String"
- comment = "column_materializer::properties::user_agent"
- }
- column "mat_is_test_user" {
- type = "String"
- comment = "column_materializer::properties::is_test_user"
- }
- column "mat_referrer" {
- type = "String"
- comment = "column_materializer::properties::referrer"
- }
- column "mat_pp_$initial_current_url" {
- type = "String"
- comment = "column_materializer::person_properties::$initial_current_url"
- }
- column "mat_most_recent_app_os" {
- type = "String"
- comment = "column_materializer::properties::most_recent_app_os"
- }
- column "mat_pp_hubspot_score" {
- type = "String"
- comment = "column_materializer::person_properties::hubspot_score"
- }
- column "mat_pp_id" {
- type = "String"
- comment = "column_materializer::person_properties::id"
- }
- column "mat_pp_$current_url" {
- type = "String"
- comment = "column_materializer::person_properties::$current_url"
- }
- column "mat_product_key" {
- type = "String"
- comment = "column_materializer::properties::product_key"
- }
- column "mat_Plan_type_and_filter" {
- type = "String"
- comment = "column_materializer::properties::Plan type and filter"
- }
- column "mat_$app_namespace" {
- type = "String"
- comment = "column_materializer::properties::$app_namespace"
- }
- column "mat_$os_name" {
- type = "String"
- comment = "column_materializer::properties::$os_name"
- }
- column "mat_pp_$os_name" {
- type = "String"
- comment = "column_materializer::person_properties::$os_name::disabled"
- }
- column "mat_pp_$app_version" {
- type = "String"
- comment = "column_materializer::person_properties::$app_version"
- }
- column "mat_subscriptionStatus" {
- type = "String"
- comment = "column_materializer::properties::subscriptionStatus"
- }
- column "mat_$screen_height" {
- type = "String"
- comment = "column_materializer::properties::$screen_height"
- }
- column "mat_$screen_width" {
- type = "String"
- comment = "column_materializer::properties::$screen_width"
- }
- column "mat_tag" {
- type = "String"
- comment = "column_materializer::properties::tag"
- }
- column "mat_$app_build" {
- type = "String"
- comment = "column_materializer::properties::$app_build"
- }
- column "mat_surface_tag" {
- type = "String"
- comment = "column_materializer::properties::surface_tag"
- }
- column "mat_survey_responses_count_in_period" {
- type = "String"
- comment = "column_materializer::properties::survey_responses_count_in_period"
- }
- column "mat_event_count_in_month" {
- type = "String"
- comment = "column_materializer::properties::event_count_in_month"
- }
- column "mat_ramp" {
- type = "String"
- comment = "column_materializer::properties::ramp"
- }
- column "mat_auto_chapters" {
- type = "String"
- comment = "column_materializer::properties::auto_chapters"
- }
- column "mat_sentiment_analysis" {
- type = "String"
- comment = "column_materializer::properties::sentiment_analysis"
- }
- column "mat_redact_pii" {
- type = "String"
- comment = "column_materializer::properties::redact_pii"
- }
- column "mat_content_safety" {
- type = "String"
- comment = "column_materializer::properties::content_safety"
- }
- column "mat_iab_categories" {
- type = "String"
- comment = "column_materializer::properties::iab_categories"
- }
- column "mat_auto_highlights" {
- type = "String"
- comment = "column_materializer::properties::auto_highlights"
- }
- column "mat_entity_detection" {
- type = "String"
- comment = "column_materializer::properties::entity_detection"
- }
- column "mat_summarization" {
- type = "String"
- comment = "column_materializer::properties::summarization"
- }
- column "mat_pp_val_region" {
- type = "String"
- comment = "column_materializer::person_properties::val_region"
- }
- column "mat_client_id" {
- type = "String"
- comment = "column_materializer::properties::client_id"
- }
- column "mat_$geoip_country_code" {
- type = "String"
- comment = "column_materializer::properties::$geoip_country_code"
- }
- column "mat_disfluencies" {
- type = "String"
- comment = "column_materializer::properties::disfluencies"
- }
- column "mat_filter_profanity" {
- type = "String"
- comment = "column_materializer::properties::filter_profanity"
- }
- column "mat_speaker_labels" {
- type = "String"
- comment = "column_materializer::properties::speaker_labels"
- }
- column "mat_language_detection" {
- type = "String"
- comment = "column_materializer::properties::language_detection"
- }
- column "mat_product_analytics_projected_amount" {
- type = "String"
- comment = "column_materializer::properties::product_analytics_projected_amount"
- }
- column "mat_recordings_projected_amount" {
- type = "String"
- comment = "column_materializer::properties::recordings_projected_amount"
- }
- column "mat_events_projected_amount" {
- type = "String"
- comment = "column_materializer::properties::events_projected_amount"
- }
- column "mat_session_replay_projected_amount" {
- type = "String"
- comment = "column_materializer::properties::session_replay_projected_amount"
- }
- column "mat_total_usd" {
- type = "String"
- comment = "column_materializer::properties::total_usd"
- }
- column "mat_stripe_amount_paid" {
- type = "String"
- comment = "column_materializer::properties::stripe_amount_paid"
- }
- column "mat_workspace" {
- type = "String"
- comment = "column_materializer::properties::workspace"
- }
- column "mat_created_at" {
- type = "String"
- comment = "column_materializer::properties::created_at"
- }
- column "mat_kind" {
- type = "String"
- comment = "column_materializer::properties::kind"
- }
- column "mat_product" {
- type = "String"
- comment = "column_materializer::properties::product"
- }
- column "mat_message" {
- type = "String"
- comment = "column_materializer::properties::message"
- }
- column "mat_initiator" {
- type = "String"
- comment = "column_materializer::properties::initiator"
- }
- column "mat_query" {
- type = "String"
- comment = "column_materializer::properties::query"
- }
- column "mat_$survey_id" {
- type = "String"
- comment = "column_materializer::properties::$survey_id"
- }
- column "mat_$survey_response_1" {
- type = "String"
- comment = "column_materializer::properties::$survey_response_1"
- }
- column "mat_ticketId" {
- type = "String"
- comment = "column_materializer::properties::ticketId"
- }
- column "mat_$survey_response" {
- type = "String"
- comment = "column_materializer::properties::$survey_response"
- }
- column "mat_conceptName" {
- type = "String"
- comment = "column_materializer::properties::conceptName"
- }
- column "mat_apiName" {
- type = "String"
- comment = "column_materializer::properties::apiName"
- }
- column "mat_workplace_billing_plan" {
- type = "String"
- comment = "column_materializer::properties::workplace_billing_plan"
- }
- column "mat_$el_text" {
- type = "String"
- comment = "column_materializer::properties::$el_text"
- }
- column "mat_recording_count_in_period" {
- type = "String"
- comment = "column_materializer::properties::recording_count_in_period"
- }
- column "mat_$os_version" {
- type = "String"
- comment = "column_materializer::properties::$os_version"
- }
- column "mat_orderId" {
- type = "String"
- comment = "column_materializer::properties::orderId"
- }
- column "mat_commit_sha" {
- type = "String"
- comment = "column_materializer::properties::commit_sha"
- }
- column "mat_$feature_flag_payloads" {
- type = "String"
- comment = "column_materializer::properties::$feature_flag_payloads"
- }
- column "mat_event_count_in_period" {
- type = "String"
- comment = "column_materializer::properties::event_count_in_period"
- }
- column "mat_$groups" {
- type = "String"
- comment = "column_materializer::properties::$groups"
- }
- column "mat_$feature_flag" {
- type = "String"
- comment = "column_materializer::properties::$feature_flag"
- }
- column "mat_utm_content" {
- type = "String"
- comment = "column_materializer::properties::utm_content"
- }
- column "mat_gclid" {
- type = "String"
- comment = "column_materializer::properties::gclid"
- }
- column "mat_gad_source" {
- type = "String"
- comment = "column_materializer::properties::gad_source"
- }
- column "mat_gbraid" {
- type = "String"
- comment = "column_materializer::properties::gbraid"
- }
- column "mat_wbraid" {
- type = "String"
- comment = "column_materializer::properties::wbraid"
- }
- column "mat_fbclid" {
- type = "String"
- comment = "column_materializer::properties::fbclid"
- }
- column "mat_msclkid" {
- type = "String"
- comment = "column_materializer::properties::msclkid"
- }
- column "mat_organization_id" {
- type = "String"
- comment = "column_materializer::properties::organization_id"
- }
- column "mat_owner_type" {
- type = "String"
- comment = "column_materializer::properties::owner_type"
- }
- column "mat_device_type" {
- type = "String"
- comment = "column_materializer::properties::device_type"
- }
- column "mat_$device_id" {
- type = "String"
- comment = "column_materializer::properties::$device_id"
- }
- column "mat_pp_$geoip_continent_name" {
- type = "String"
- comment = "column_materializer::person_properties::$geoip_continent_name"
- }
- column "mat_$feature_flag_response" {
- type = "String"
- comment = "column_materializer::properties::$feature_flag_response"
- }
- column "mat_pp_utm_source" {
- type = "String"
- comment = "column_materializer::person_properties::utm_source"
- }
- column "mat_pp_$referring_domain" {
- type = "String"
- comment = "column_materializer::person_properties::$referring_domain"
- }
- column "mat_pp_Email_Domain" {
- type = "String"
- comment = "column_materializer::person_properties::Email Domain"
- }
- column "mat_machine_id" {
- type = "String"
- comment = "column_materializer::properties::machine_id"
- }
- column "mat_user_email_domain" {
- type = "String"
- comment = "column_materializer::properties::user_email_domain"
- }
- column "mat_$lib_version__minor" {
- type = "String"
- comment = "column_materializer::properties::$lib_version__minor"
- }
- column "mat_region" {
- type = "String"
- comment = "column_materializer::properties::region"
- }
- column "mat_pp_user_email_domain" {
- type = "String"
- comment = "column_materializer::person_properties::user_email_domain"
- }
- column "mat_url_promotion_id" {
- type = "String"
- comment = "column_materializer::properties::url_promotion_id"
- }
- column "mat_$lib_custom_api_host" {
- type = "String"
- comment = "column_materializer::properties::$lib_custom_api_host"
- }
- column "person_mode" {
- type = "Enum8('full'=0, 'propertyless'=1, 'force_upgrade'=2)"
- }
- column "mat_user_platform" {
- type = "String"
- comment = "column_materializer::properties::user_platform"
- }
- column "mat_pp_$geoip_country_name" {
- type = "String"
- comment = "column_materializer::person_properties::$geoip_country_name"
- }
- column "mat_environment" {
- type = "String"
- comment = "column_materializer::properties::environment"
- }
- column "mat_customer_email" {
- type = "String"
- comment = "column_materializer::properties::customer_email"
- }
- column "mat_client_name" {
- type = "String"
- comment = "column_materializer::properties::client_name"
- }
- column "mat_screen_name" {
- type = "String"
- comment = "column_materializer::properties::screen_name"
- }
- column "mat_app_version" {
- type = "String"
- comment = "column_materializer::properties::app_version"
- }
- column "elements_chain_href" {
- type = "String"
- comment = "column_materializer::elements_chain::href"
- }
- column "elements_chain_texts" {
- type = "Array(String)"
- comment = "column_materializer::elements_chain::texts"
- }
- column "elements_chain_ids" {
- type = "Array(String)"
- comment = "column_materializer::elements_chain::ids"
- }
- column "elements_chain_elements" {
- type = "Array(Enum8('a'=1, 'button'=2, 'form'=3, 'input'=4, 'select'=5, 'textarea'=6, 'label'=7))"
- comment = "column_materializer::elements_chain::elements"
- }
- column "properties_group_custom" {
- type = "Map(String, String)"
- }
- column "properties_group_feature_flags" {
- type = "Map(String, String)"
- }
- column "is_deleted" {
- type = "Bool"
- }
- column "mat_subdomain" {
- type = "String"
- comment = "column_materializer::properties::subdomain"
- }
- column "mat_$device" {
- type = "String"
- comment = "column_materializer::properties::$device"
- }
- column "mat_id" {
- type = "String"
- comment = "column_materializer::properties::id"
- }
- column "mat_record_id" {
- type = "String"
- comment = "column_materializer::properties::record_id"
- }
- column "mat_referrer_id" {
- type = "String"
- comment = "column_materializer::properties::record_id"
- }
- column "mat_$exception_issue_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_issue_id"
- }
- column "mat_$exception_fingerprint" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_fingerprint"
- }
- column "mat_$web_vitals_LCP_value" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$web_vitals_LCP_value"
- }
- column "mat_$web_vitals_FCP_value" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$web_vitals_FCP_value"
- }
- column "mat_$web_vitals_CLS_value" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$web_vitals_CLS_value"
- }
- column "mat_$web_vitals_INP_value" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$web_vitals_INP_value"
- }
- column "mat_$viewport_width" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$viewport_width"
- }
- column "mat_$viewport_height" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$viewport_height"
- }
- column "mat_$anon_distinct_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$anon_distinct_id"
- }
- column "person_properties_map_custom" {
- type = "Map(String, String)"
- }
- column "mat_$ai_trace_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_trace_id"
- }
- column "mat_$ai_model" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_model"
- }
- column "mat_$ai_provider" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_provider"
- }
- column "mat_$ai_parent_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_parent_id"
- }
- column "mat_$ai_span_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_span_id"
- }
- column "mat_$ai_http_status" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_http_status"
- }
- column "mat_$exception_types" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_types"
- }
- column "mat_$exception_values" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_values"
- }
- column "mat_$exception_sources" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_sources"
- }
- column "mat_$exception_functions" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$exception_functions"
- }
- column "$session_id_uuid" {
- type = "Nullable(UInt128)"
- }
- column "mat_$process_person_profile" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$process_person_profile"
- }
- column "consumer_breadcrumbs" {
- type = "Array(String)"
- }
- column "properties_group_ai" {
- type = "Map(String, String)"
- }
- column "mat_$is_identified" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$is_identified"
- }
- column "mat_historical_migration" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::historical_migration"
- }
- column "mat_$ai_session_id" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_session_id"
- }
- column "mat_$ai_is_error" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_is_error"
- }
- column "dmat_string_0" {
- type = "Nullable(String)"
- }
- column "dmat_string_1" {
- type = "Nullable(String)"
- }
- column "dmat_string_2" {
- type = "Nullable(String)"
- }
- column "dmat_string_3" {
- type = "Nullable(String)"
- }
- column "dmat_string_4" {
- type = "Nullable(String)"
- }
- column "dmat_string_5" {
- type = "Nullable(String)"
- }
- column "dmat_string_6" {
- type = "Nullable(String)"
- }
- column "dmat_string_7" {
- type = "Nullable(String)"
- }
- column "dmat_string_8" {
- type = "Nullable(String)"
- }
- column "dmat_string_9" {
- type = "Nullable(String)"
- }
- column "dmat_numeric_0" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_1" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_2" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_3" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_4" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_5" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_6" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_7" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_8" {
- type = "Nullable(Float64)"
- }
- column "dmat_numeric_9" {
- type = "Nullable(Float64)"
- }
- column "dmat_bool_0" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_1" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_2" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_3" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_4" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_5" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_6" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_7" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_8" {
- type = "Nullable(UInt8)"
- }
- column "dmat_bool_9" {
- type = "Nullable(UInt8)"
- }
- column "dmat_datetime_0" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_1" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_2" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_3" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_4" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_5" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_6" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_7" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_8" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "dmat_datetime_9" {
- type = "Nullable(DateTime64(6, 'UTC'))"
- }
- column "historical_migration" {
- type = "Bool"
- }
- column "mat_$ai_total_cost_usd" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_total_cost_usd"
- }
- column "properties_group_ai_large" {
- type = "Map(String, String)"
- }
- column "mat_$ai_prompt_name" {
- type = "Nullable(String)"
- comment = "column_materializer::properties::$ai_prompt_name"
- }
- engine "distributed" {
- cluster_name = "posthog"
- remote_database = "posthog"
- remote_table = "sharded_events"
- sharding_key = "sipHash64(distinct_id)"
- }
- }
table "raw_sessions_v3" {
order_by = ["team_id", "session_timestamp", "session_id_v7"]
partition_by = "toYYYYMM(session_timestamp)"
diff --git a/posthog/clickhouse/hcl/roles/sessions/shared/tables.hcl b/posthog/clickhouse/hcl/roles/sessions/shared/tables.hcl
index 2df3fad44ef6..a6dc083961fb 100644
--- a/posthog/clickhouse/hcl/roles/sessions/shared/tables.hcl
+++ b/posthog/clickhouse/hcl/roles/sessions/shared/tables.hcl
@@ -270,4 +270,1719 @@ database "posthog" {
replica_name = "{shard}-{replica}"
}
}
+
+ # The sessions nodes read events through the same Distributed proxy the data
+ # node carries, so the column core is the shared abstract.
+ table "events" {
+ extend = "_event_base"
+ patch_column "$group_0" {
+ comment = "column_materializer::$group_0"
+ }
+ patch_column "$group_1" {
+ comment = "column_materializer::$group_1"
+ }
+ patch_column "$group_2" {
+ comment = "column_materializer::$group_2"
+ }
+ patch_column "$group_3" {
+ comment = "column_materializer::$group_3"
+ }
+ patch_column "$group_4" {
+ comment = "column_materializer::$group_4"
+ }
+ patch_column "$window_id" {
+ comment = "column_materializer::$window_id"
+ }
+ patch_column "$session_id" {
+ comment = "column_materializer::$session_id"
+ }
+ patch_column "elements_chain_href" {
+ comment = "column_materializer::elements_chain::href"
+ }
+ patch_column "elements_chain_texts" {
+ comment = "column_materializer::elements_chain::texts"
+ }
+ patch_column "elements_chain_ids" {
+ comment = "column_materializer::elements_chain::ids"
+ }
+ patch_column "elements_chain_elements" {
+ comment = "column_materializer::elements_chain::elements"
+ }
+ patch_column "mat_historical_migration" {
+ comment = "column_materializer::properties::historical_migration"
+ }
+ patch_column "mat_$ai_session_id" {
+ comment = "column_materializer::properties::$ai_session_id"
+ }
+ patch_column "mat_$ai_is_error" {
+ comment = "column_materializer::properties::$ai_is_error"
+ }
+ patch_column "mat_$ai_prompt_name" {
+ comment = "column_materializer::properties::$ai_prompt_name"
+ }
+ engine "distributed" {
+ cluster_name = "posthog"
+ remote_database = "posthog"
+ remote_table = "sharded_events"
+ sharding_key = "sipHash64(distinct_id)"
+ }
+ }
+
+ # The materialized-column tail these nodes carry, positioned to match the live
+ # physical order. It arrives as a patch because `after` only positions a
+ # patch_table add: inside a declaration, declaration order is the order.
+ patch_table "events" {
+ column "elements_hash" {
+ type = "String"
+ after = "distinct_id"
+ }
+ column "_timestamp" {
+ type = "DateTime"
+ after = "created_at"
+ }
+ column "_offset" {
+ type = "UInt64"
+ after = "_timestamp"
+ }
+ column "elements_chain" {
+ type = "String"
+ after = "_offset"
+ }
+ column "mat_$user_id" {
+ type = "String"
+ comment = "column_materializer::$user_id"
+ after = "elements_chain"
+ }
+ column "mat_$browser" {
+ type = "String"
+ comment = "column_materializer::$browser"
+ after = "mat_$user_id"
+ }
+ column "mat_$host" {
+ type = "String"
+ comment = "column_materializer::$host"
+ after = "mat_$browser"
+ }
+ column "mat_$current_url" {
+ type = "String"
+ comment = "column_materializer::$current_url"
+ after = "mat_$host"
+ }
+ column "mat_distinct_id" {
+ type = "String"
+ comment = "column_materializer::distinct_id"
+ after = "mat_$current_url"
+ }
+ column "mat_action" {
+ type = "String"
+ comment = "column_materializer::action"
+ after = "mat_distinct_id"
+ }
+ column "mat_origin" {
+ type = "String"
+ comment = "column_materializer::origin"
+ after = "mat_action"
+ }
+ column "mat_email" {
+ type = "String"
+ comment = "column_materializer::email"
+ after = "mat_origin"
+ }
+ column "mat_key" {
+ type = "String"
+ comment = "column_materializer::key"
+ after = "mat_email"
+ }
+ column "mat_insight" {
+ type = "String"
+ comment = "column_materializer::insight"
+ after = "mat_key"
+ }
+ column "mat_$event_type" {
+ type = "String"
+ comment = "column_materializer::$event_type"
+ after = "mat_insight"
+ }
+ column "mat_created_by" {
+ type = "String"
+ comment = "column_materializer::created_by"
+ after = "mat_$event_type"
+ }
+ column "mat_total_event_actions_count" {
+ type = "String"
+ comment = "column_materializer::total_event_actions_count"
+ after = "mat_created_by"
+ }
+ column "mat_is_demo_project" {
+ type = "String"
+ comment = "column_materializer::is_demo_project"
+ after = "mat_total_event_actions_count"
+ }
+ column "mat_$active_feature_flags" {
+ type = "String"
+ comment = "column_materializer::$active_feature_flags"
+ after = "mat_is_demo_project"
+ }
+ column "mat_filters_count" {
+ type = "String"
+ comment = "column_materializer::filters_count"
+ after = "mat_$active_feature_flags"
+ }
+ column "mat_utm_source" {
+ type = "String"
+ comment = "column_materializer::utm_source"
+ after = "mat_filters_count"
+ }
+ column "mat_apiErrorMessage" {
+ type = "String"
+ comment = "column_materializer::apiErrorMessage"
+ after = "mat_utm_source"
+ }
+ column "mat_$referring_domain" {
+ type = "String"
+ comment = "column_materializer::$referring_domain"
+ after = "mat_apiErrorMessage"
+ }
+ column "mat_statusCode" {
+ type = "String"
+ comment = "column_materializer::statusCode"
+ after = "mat_$referring_domain"
+ }
+ column "mat_deal_id" {
+ type = "String"
+ comment = "column_materializer::deal_id"
+ after = "mat_statusCode"
+ }
+ column "mat_realm" {
+ type = "String"
+ comment = "column_materializer::realm"
+ after = "mat_deal_id"
+ }
+ column "mat_$lib" {
+ type = "String"
+ comment = "column_materializer::$lib"
+ after = "$group_4"
+ }
+ column "mat_$os" {
+ type = "String"
+ comment = "column_materializer::$os"
+ after = "mat_$lib"
+ }
+ column "mat_$initial_referrer" {
+ type = "String"
+ comment = "column_materializer::$initial_referrer"
+ after = "mat_$os"
+ }
+ column "mat_$app_version" {
+ type = "String"
+ comment = "column_materializer::$app_version"
+ after = "mat_$initial_referrer"
+ }
+ column "mat_$initial_referring_domain" {
+ type = "String"
+ comment = "column_materializer::$initial_referring_domain"
+ after = "mat_$app_version"
+ }
+ column "mat_symbol" {
+ type = "String"
+ comment = "column_materializer::symbol"
+ after = "mat_$initial_referring_domain"
+ }
+ column "mat_page" {
+ type = "String"
+ comment = "column_materializer::page"
+ after = "mat_symbol"
+ }
+ column "mat_type" {
+ type = "String"
+ comment = "column_materializer::type"
+ after = "mat_page"
+ }
+ column "mat_currentScreen" {
+ type = "String"
+ comment = "column_materializer::currentScreen"
+ after = "mat_type"
+ }
+ column "mat_utm_campaign" {
+ type = "String"
+ comment = "column_materializer::utm_campaign"
+ after = "mat_currentScreen"
+ }
+ column "mat_is_organization_first_user" {
+ type = "String"
+ comment = "column_materializer::is_organization_first_user"
+ after = "mat_utm_campaign"
+ }
+ column "mat_is_first_component_load" {
+ type = "String"
+ comment = "column_materializer::is_first_component_load"
+ after = "mat_is_organization_first_user"
+ }
+ column "mat_team" {
+ type = "String"
+ comment = "column_materializer::team"
+ after = "mat_is_first_component_load"
+ }
+ column "mat_context" {
+ type = "String"
+ comment = "column_materializer::context"
+ after = "mat_team"
+ }
+ column "mat_sdk" {
+ type = "String"
+ comment = "column_materializer::sdk"
+ after = "mat_context"
+ }
+ column "mat_created_by_system" {
+ type = "String"
+ comment = "column_materializer::created_by_system"
+ after = "mat_sdk"
+ }
+ column "mat_item_count" {
+ type = "String"
+ comment = "column_materializer::item_count"
+ after = "mat_created_by_system"
+ }
+ column "mat_$ip" {
+ type = "String"
+ comment = "column_materializer::$ip"
+ after = "mat_item_count"
+ }
+ column "mat_$referrer" {
+ type = "String"
+ comment = "column_materializer::$referrer"
+ after = "mat_$ip"
+ }
+ column "mat_action_name" {
+ type = "String"
+ comment = "column_materializer::action_name"
+ after = "mat_$referrer"
+ }
+ column "mat_$geoip_country_name" {
+ type = "String"
+ comment = "column_materializer::$geoip_country_name"
+ after = "mat_action_name"
+ }
+ column "mat_$device_model" {
+ type = "String"
+ comment = "column_materializer::$device_model"
+ after = "mat_$geoip_country_name"
+ }
+ column "mat_progress" {
+ type = "String"
+ comment = "column_materializer::progress"
+ after = "mat_$device_model"
+ }
+ column "mat_chain" {
+ type = "String"
+ comment = "column_materializer::chain"
+ after = "mat_progress"
+ }
+ column "mat_$device_type" {
+ type = "String"
+ comment = "column_materializer::$device_type"
+ after = "mat_chain"
+ }
+ column "mat_usd" {
+ type = "String"
+ comment = "column_materializer::usd"
+ after = "mat_$device_type"
+ }
+ column "mat_app_name" {
+ type = "String"
+ comment = "column_materializer::app_name"
+ after = "mat_usd"
+ }
+ column "mat_$screen_name" {
+ type = "String"
+ comment = "column_materializer::$screen_name"
+ after = "mat_app_name"
+ }
+ column "mat_index" {
+ type = "String"
+ comment = "column_materializer::index"
+ after = "mat_$screen_name"
+ }
+ column "mat_token" {
+ type = "String"
+ comment = "column_materializer::token"
+ after = "mat_index"
+ }
+ column "mat_method" {
+ type = "String"
+ comment = "column_materializer::method"
+ after = "mat_token"
+ }
+ column "mat_address" {
+ type = "String"
+ comment = "column_materializer::address"
+ after = "mat_method"
+ }
+ column "mat_name" {
+ type = "String"
+ comment = "column_materializer::name"
+ after = "mat_address"
+ }
+ column "mat_inviteCode" {
+ type = "String"
+ comment = "column_materializer::inviteCode"
+ after = "mat_name"
+ }
+ column "mat_osName" {
+ type = "String"
+ comment = "column_materializer::osName"
+ after = "$session_id"
+ }
+ column "mat_nativeBuildVersion" {
+ type = "String"
+ comment = "column_materializer::nativeBuildVersion"
+ after = "mat_osName"
+ }
+ column "mat_revenue" {
+ type = "String"
+ comment = "column_materializer::revenue"
+ after = "mat_nativeBuildVersion"
+ }
+ column "group_0" {
+ type = "String"
+ alias = "`$group_0`"
+ after = "mat_revenue"
+ }
+ column "group_1" {
+ type = "String"
+ alias = "`$group_1`"
+ after = "group_0"
+ }
+ column "group_2" {
+ type = "String"
+ alias = "`$group_2`"
+ after = "group_1"
+ }
+ column "group_3" {
+ type = "String"
+ alias = "`$group_3`"
+ after = "group_2"
+ }
+ column "group_4" {
+ type = "String"
+ alias = "`$group_4`"
+ after = "group_3"
+ }
+ column "alias_mat__user_id" {
+ type = "String"
+ alias = "`mat_$user_id`"
+ after = "group_4"
+ }
+ column "alias_mat__browser" {
+ type = "String"
+ alias = "`mat_$browser`"
+ after = "alias_mat__user_id"
+ }
+ column "alias_mat__host" {
+ type = "String"
+ alias = "`mat_$host`"
+ after = "alias_mat__browser"
+ }
+ column "alias_mat__current_url" {
+ type = "String"
+ alias = "`mat_$current_url`"
+ after = "alias_mat__host"
+ }
+ column "alias_mat__event_type" {
+ type = "String"
+ alias = "`mat_$event_type`"
+ after = "alias_mat__current_url"
+ }
+ column "alias_mat__active_feature_flags" {
+ type = "String"
+ alias = "`mat_$active_feature_flags`"
+ after = "alias_mat__event_type"
+ }
+ column "alias_mat__referring_domain" {
+ type = "String"
+ alias = "`mat_$referring_domain`"
+ after = "alias_mat__active_feature_flags"
+ }
+ column "alias_mat__lib" {
+ type = "String"
+ alias = "`mat_$lib`"
+ after = "alias_mat__referring_domain"
+ }
+ column "alias_mat__os" {
+ type = "String"
+ alias = "`mat_$os`"
+ after = "alias_mat__lib"
+ }
+ column "alias_mat__initial_referrer" {
+ type = "String"
+ alias = "`mat_$initial_referrer`"
+ after = "alias_mat__os"
+ }
+ column "alias_mat__app_version" {
+ type = "String"
+ alias = "`mat_$app_version`"
+ after = "alias_mat__initial_referrer"
+ }
+ column "alias_mat__initial_referring_domain" {
+ type = "String"
+ alias = "`mat_$initial_referring_domain`"
+ after = "alias_mat__app_version"
+ }
+ column "alias_mat__ip" {
+ type = "String"
+ alias = "`mat_$ip`"
+ after = "alias_mat__initial_referring_domain"
+ }
+ column "alias_mat__referrer" {
+ type = "String"
+ alias = "`mat_$referrer`"
+ after = "alias_mat__ip"
+ }
+ column "alias_mat__geoip_country_name" {
+ type = "String"
+ alias = "`mat_$geoip_country_name`"
+ after = "alias_mat__referrer"
+ }
+ column "alias_mat__device_model" {
+ type = "String"
+ alias = "`mat_$device_model`"
+ after = "alias_mat__geoip_country_name"
+ }
+ column "alias_mat__device_type" {
+ type = "String"
+ alias = "`mat_$device_type`"
+ after = "alias_mat__device_model"
+ }
+ column "alias_mat__screen_name" {
+ type = "String"
+ alias = "`mat_$screen_name`"
+ after = "alias_mat__device_type"
+ }
+ column "person_id" {
+ type = "UUID"
+ after = "alias_mat__screen_name"
+ }
+ column "person_properties" {
+ type = "String"
+ after = "person_id"
+ }
+ column "group0_properties" {
+ type = "String"
+ after = "person_properties"
+ }
+ column "group1_properties" {
+ type = "String"
+ after = "group0_properties"
+ }
+ column "group2_properties" {
+ type = "String"
+ after = "group1_properties"
+ }
+ column "group3_properties" {
+ type = "String"
+ after = "group2_properties"
+ }
+ column "group4_properties" {
+ type = "String"
+ after = "group3_properties"
+ }
+ column "person_created_at" {
+ type = "DateTime64(3)"
+ after = "group4_properties"
+ }
+ column "group0_created_at" {
+ type = "DateTime64(3)"
+ after = "person_created_at"
+ }
+ column "group1_created_at" {
+ type = "DateTime64(3)"
+ after = "group0_created_at"
+ }
+ column "group2_created_at" {
+ type = "DateTime64(3)"
+ after = "group1_created_at"
+ }
+ column "group3_created_at" {
+ type = "DateTime64(3)"
+ after = "group2_created_at"
+ }
+ column "group4_created_at" {
+ type = "DateTime64(3)"
+ after = "group3_created_at"
+ }
+ column "mat_arguments" {
+ type = "String"
+ comment = "column_materializer::properties::arguments"
+ after = "group4_created_at"
+ }
+ column "mat_source" {
+ type = "String"
+ comment = "column_materializer::properties::source"
+ after = "mat_arguments"
+ }
+ column "mat_pp_email" {
+ type = "String"
+ comment = "column_materializer::person_properties::email"
+ after = "mat_source"
+ }
+ column "mat_$time" {
+ type = "String"
+ comment = "column_materializer::properties::$time"
+ after = "mat_pp_email"
+ }
+ column "mat_$pathname" {
+ type = "String"
+ comment = "column_materializer::properties::$pathname"
+ after = "mat_$time"
+ }
+ column "mat_$geoip_city_name" {
+ type = "String"
+ comment = "column_materializer::properties::$geoip_city_name"
+ after = "mat_$pathname"
+ }
+ column "mat_community_id" {
+ type = "String"
+ comment = "column_materializer::properties::community_id"
+ after = "mat_$geoip_city_name"
+ }
+ column "mat_thread_id" {
+ type = "String"
+ comment = "column_materializer::properties::thread_id"
+ after = "mat_community_id"
+ }
+ column "mat_Event_productCode" {
+ type = "String"
+ comment = "column_materializer::properties::Event.productCode"
+ after = "mat_thread_id"
+ }
+ column "mat_env" {
+ type = "String"
+ comment = "column_materializer::properties::env"
+ after = "mat_Event_productCode"
+ }
+ column "mat_target" {
+ type = "String"
+ comment = "column_materializer::properties::target"
+ after = "mat_env"
+ }
+ column "mat_Subscription_plan_amount" {
+ type = "String"
+ comment = "column_materializer::properties::Subscription.plan.amount"
+ after = "mat_target"
+ }
+ column "mat_title" {
+ type = "String"
+ comment = "column_materializer::properties::title"
+ after = "mat_Subscription_plan_amount"
+ }
+ column "mat_Connection_app_name" {
+ type = "String"
+ comment = "column_materializer::properties::Connection.app.name"
+ after = "mat_title"
+ }
+ column "mat_utm_medium" {
+ type = "String"
+ comment = "column_materializer::properties::utm_medium"
+ after = "mat_Connection_app_name"
+ }
+ column "mat_Account_client_id" {
+ type = "String"
+ comment = "column_materializer::properties::Account.client_id"
+ after = "mat_utm_medium"
+ }
+ column "mat_HTTP_Method" {
+ type = "String"
+ comment = "column_materializer::properties::HTTP Method"
+ after = "mat_Account_client_id"
+ }
+ column "mat_audio_duration" {
+ type = "String"
+ comment = "column_materializer::properties::audio_duration"
+ after = "mat_HTTP_Method"
+ }
+ column "mat_duration" {
+ type = "String"
+ comment = "column_materializer::properties::duration"
+ after = "mat_audio_duration"
+ }
+ column "mat_url" {
+ type = "String"
+ comment = "column_materializer::properties::url"
+ after = "mat_duration"
+ }
+ column "mat_group_id" {
+ type = "String"
+ comment = "column_materializer::properties::group_id"
+ after = "mat_url"
+ }
+ column "mat_platform" {
+ type = "String"
+ comment = "column_materializer::properties::platform"
+ after = "mat_group_id"
+ }
+ column "mat_pp_$browser" {
+ type = "String"
+ comment = "column_materializer::person_properties::$browser"
+ after = "mat_platform"
+ }
+ column "mat_payment_status" {
+ type = "String"
+ comment = "column_materializer::properties::payment_status"
+ after = "mat_pp_$browser"
+ }
+ column "mat_testSessionId" {
+ type = "String"
+ comment = "column_materializer::properties::testSessionId"
+ after = "mat_payment_status"
+ }
+ column "mat_$sent_at" {
+ type = "String"
+ comment = "column_materializer::properties::$sent_at"
+ after = "inserted_at"
+ }
+ column "mat_pp_companyName" {
+ type = "String"
+ comment = "column_materializer::person_properties::companyName"
+ after = "mat_$sent_at"
+ }
+ column "mat_function" {
+ type = "String"
+ comment = "column_materializer::properties::function"
+ after = "mat_pp_companyName"
+ }
+ column "mat_store_url" {
+ type = "String"
+ comment = "column_materializer::properties::store_url"
+ after = "mat_function"
+ }
+ column "mat_email_domain" {
+ type = "String"
+ comment = "column_materializer::properties::email_domain"
+ after = "mat_store_url"
+ }
+ column "mat_institution_name" {
+ type = "String"
+ comment = "column_materializer::properties::institution_name"
+ after = "mat_email_domain"
+ }
+ column "mat_authentication_method" {
+ type = "String"
+ comment = "column_materializer::properties::authentication_method"
+ after = "mat_institution_name"
+ }
+ column "mat_initial_step" {
+ type = "String"
+ comment = "column_materializer::properties::initial_step"
+ after = "mat_authentication_method"
+ }
+ column "mat_status_message" {
+ type = "String"
+ comment = "column_materializer::properties::status_message"
+ after = "mat_initial_step"
+ }
+ column "mat_mode" {
+ type = "String"
+ comment = "column_materializer::properties::mode"
+ after = "mat_status_message"
+ }
+ column "mat_protocol" {
+ type = "String"
+ comment = "column_materializer::properties::protocol"
+ after = "mat_mode"
+ }
+ column "mat_job_type" {
+ type = "String"
+ comment = "column_materializer::properties::job_type"
+ after = "mat_protocol"
+ }
+ column "mat_is_oauth" {
+ type = "String"
+ comment = "column_materializer::properties::is_oauth"
+ after = "mat_job_type"
+ }
+ column "mat_is_initial_aggregation" {
+ type = "String"
+ comment = "column_materializer::properties::is_initial_aggregation"
+ after = "mat_is_oauth"
+ }
+ column "mat_search_term" {
+ type = "String"
+ comment = "column_materializer::properties::search_term"
+ after = "mat_is_initial_aggregation"
+ }
+ column "mat_valid_ach_accounts" {
+ type = "String"
+ comment = "column_materializer::properties::valid_ach_accounts"
+ after = "mat_search_term"
+ }
+ column "mat_gross" {
+ type = "String"
+ comment = "column_materializer::properties::gross"
+ after = "mat_valid_ach_accounts"
+ }
+ column "mat_orderType" {
+ type = "String"
+ comment = "column_materializer::properties::orderType"
+ after = "mat_gross"
+ }
+ column "mat_sku" {
+ type = "String"
+ comment = "column_materializer::properties::sku"
+ after = "mat_orderType"
+ }
+ column "mat_dual_channel" {
+ type = "String"
+ comment = "column_materializer::properties::dual_channel"
+ after = "mat_sku"
+ }
+ column "mat_channel" {
+ type = "String"
+ comment = "column_materializer::properties::channel"
+ after = "mat_dual_channel"
+ }
+ column "mat_workspaceId" {
+ type = "String"
+ comment = "column_materializer::properties::workspaceId"
+ after = "mat_channel"
+ }
+ column "mat_numberOfSecrets" {
+ type = "String"
+ comment = "column_materializer::properties::numberOfSecrets"
+ after = "mat_workspaceId"
+ }
+ column "mat_organizations" {
+ type = "String"
+ comment = "column_materializer::properties::organizations"
+ after = "mat_numberOfSecrets"
+ }
+ column "mat_organization" {
+ type = "String"
+ comment = "column_materializer::properties::organization"
+ after = "mat_organizations"
+ }
+ column "mat_contributionError" {
+ type = "String"
+ comment = "column_materializer::properties::contributionError"
+ after = "mat_organization"
+ }
+ column "mat_phone" {
+ type = "String"
+ comment = "column_materializer::properties::phone"
+ after = "mat_contributionError"
+ }
+ column "mat_$initial_pathname" {
+ type = "String"
+ comment = "column_materializer::properties::$initial_pathname"
+ after = "mat_phone"
+ }
+ column "mat_organization_name" {
+ type = "String"
+ comment = "column_materializer::properties::organization_name"
+ after = "mat_$initial_pathname"
+ }
+ column "mat_category" {
+ type = "String"
+ comment = "column_materializer::properties::category"
+ after = "mat_organization_name"
+ }
+ column "mat_$lib_version" {
+ type = "String"
+ comment = "column_materializer::properties::$lib_version"
+ after = "mat_category"
+ }
+ column "mat_pp_$initial_utm_campaign" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_utm_campaign"
+ after = "mat_$lib_version"
+ }
+ column "mat_pp_$initial_utm_medium" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_utm_medium"
+ after = "mat_pp_$initial_utm_campaign"
+ }
+ column "mat_pp_$initial_gclid" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_gclid"
+ after = "mat_pp_$initial_utm_medium"
+ }
+ column "mat_pp_$initial_gad_source" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_gad_source"
+ after = "mat_pp_$initial_gclid"
+ }
+ column "mat_pp_$initial_utm_source" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_utm_source"
+ after = "mat_pp_$initial_gad_source"
+ }
+ column "mat_pp_$initial_referring_domain" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_referring_domain"
+ after = "mat_pp_$initial_utm_source"
+ }
+ column "mat_pp_$initial_utm_term" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_utm_term"
+ after = "mat_pp_$initial_referring_domain"
+ }
+ column "mat_pp_$initial_utm_content" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_utm_content"
+ after = "mat_pp_$initial_utm_term"
+ }
+ column "mat_pp_$initial_gbraid" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_gbraid::disabled"
+ after = "mat_pp_$initial_utm_content"
+ }
+ column "mat_pp_$initial_wbraid" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_wbraid::disabled"
+ after = "mat_pp_$initial_gbraid"
+ }
+ column "mat_pp_$initial_msclkid" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_msclkid"
+ after = "mat_pp_$initial_wbraid"
+ }
+ column "mat_pp_$initial_fbclid" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_fbclid"
+ after = "mat_pp_$initial_msclkid"
+ }
+ column "mat_$geoip_subdivision_1_code" {
+ type = "String"
+ comment = "column_materializer::properties::$geoip_subdivision_1_code"
+ after = "mat_pp_$initial_fbclid"
+ }
+ column "mat_wlo_enabled" {
+ type = "String"
+ comment = "column_materializer::properties::wlo_enabled"
+ after = "mat_$geoip_subdivision_1_code"
+ }
+ column "mat_$prev_pageview_max_scroll_percentage" {
+ type = "String"
+ comment = "column_materializer::properties::$prev_pageview_max_scroll_percentage"
+ after = "mat_wlo_enabled"
+ }
+ column "mat_$prev_pageview_max_content_percentage" {
+ type = "String"
+ comment = "column_materializer::properties::$prev_pageview_max_content_percentage"
+ after = "mat_$prev_pageview_max_scroll_percentage"
+ }
+ column "mat_$prev_pageview_pathname" {
+ type = "String"
+ comment = "column_materializer::properties::$prev_pageview_pathname"
+ after = "mat_$prev_pageview_max_content_percentage"
+ }
+ column "mat_pp_$initial_pathname" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_pathname"
+ after = "mat_$prev_pageview_pathname"
+ }
+ column "mat_pp_$geoip_country_code" {
+ type = "String"
+ comment = "column_materializer::person_properties::$geoip_country_code"
+ after = "mat_pp_$initial_pathname"
+ }
+ column "mat_pp_username" {
+ type = "String"
+ comment = "column_materializer::person_properties::username"
+ after = "mat_pp_$geoip_country_code"
+ }
+ column "mat_pp_serverMasterclass" {
+ type = "String"
+ comment = "column_materializer::person_properties::serverMasterclass"
+ after = "mat_pp_username"
+ }
+ column "mat_content_length" {
+ type = "String"
+ comment = "column_materializer::properties::content_length"
+ after = "mat_pp_serverMasterclass"
+ }
+ column "mat_pp_serverMarketing" {
+ type = "String"
+ comment = "column_materializer::person_properties::serverMarketing"
+ after = "mat_content_length"
+ }
+ column "mat_$browser_version" {
+ type = "String"
+ comment = "column_materializer::properties::$browser_version"
+ after = "mat_pp_serverMarketing"
+ }
+ column "mat_pp_role" {
+ type = "String"
+ comment = "column_materializer::person_properties::role"
+ after = "mat_$browser_version"
+ }
+ column "mat_pp_customer" {
+ type = "String"
+ comment = "column_materializer::person_properties::customer"
+ after = "mat_pp_role"
+ }
+ column "mat_event" {
+ type = "String"
+ comment = "column_materializer::properties::event"
+ after = "mat_pp_customer"
+ }
+ column "mat_disable_institution_search" {
+ type = "String"
+ comment = "column_materializer::properties::disable_institution_search"
+ after = "mat_event"
+ }
+ column "mat_is_first_event_for_user" {
+ type = "String"
+ comment = "column_materializer::properties::is_first_event_for_user"
+ after = "mat_disable_institution_search"
+ }
+ column "mat_current_member_guid" {
+ type = "String"
+ comment = "column_materializer::properties::current_member_guid"
+ after = "mat_is_first_event_for_user"
+ }
+ column "mat_user_agent" {
+ type = "String"
+ comment = "column_materializer::properties::user_agent"
+ after = "mat_current_member_guid"
+ }
+ column "mat_is_test_user" {
+ type = "String"
+ comment = "column_materializer::properties::is_test_user"
+ after = "mat_user_agent"
+ }
+ column "mat_referrer" {
+ type = "String"
+ comment = "column_materializer::properties::referrer"
+ after = "mat_is_test_user"
+ }
+ column "mat_pp_$initial_current_url" {
+ type = "String"
+ comment = "column_materializer::person_properties::$initial_current_url"
+ after = "mat_referrer"
+ }
+ column "mat_most_recent_app_os" {
+ type = "String"
+ comment = "column_materializer::properties::most_recent_app_os"
+ after = "mat_pp_$initial_current_url"
+ }
+ column "mat_pp_hubspot_score" {
+ type = "String"
+ comment = "column_materializer::person_properties::hubspot_score"
+ after = "mat_most_recent_app_os"
+ }
+ column "mat_pp_id" {
+ type = "String"
+ comment = "column_materializer::person_properties::id"
+ after = "mat_pp_hubspot_score"
+ }
+ column "mat_pp_$current_url" {
+ type = "String"
+ comment = "column_materializer::person_properties::$current_url"
+ after = "mat_pp_id"
+ }
+ column "mat_product_key" {
+ type = "String"
+ comment = "column_materializer::properties::product_key"
+ after = "mat_pp_$current_url"
+ }
+ column "mat_Plan_type_and_filter" {
+ type = "String"
+ comment = "column_materializer::properties::Plan type and filter"
+ after = "mat_product_key"
+ }
+ column "mat_$app_namespace" {
+ type = "String"
+ comment = "column_materializer::properties::$app_namespace"
+ after = "mat_Plan_type_and_filter"
+ }
+ column "mat_$os_name" {
+ type = "String"
+ comment = "column_materializer::properties::$os_name"
+ after = "mat_$app_namespace"
+ }
+ column "mat_pp_$os_name" {
+ type = "String"
+ comment = "column_materializer::person_properties::$os_name::disabled"
+ after = "mat_$os_name"
+ }
+ column "mat_pp_$app_version" {
+ type = "String"
+ comment = "column_materializer::person_properties::$app_version"
+ after = "mat_pp_$os_name"
+ }
+ column "mat_subscriptionStatus" {
+ type = "String"
+ comment = "column_materializer::properties::subscriptionStatus"
+ after = "mat_pp_$app_version"
+ }
+ column "mat_$screen_height" {
+ type = "String"
+ comment = "column_materializer::properties::$screen_height"
+ after = "mat_subscriptionStatus"
+ }
+ column "mat_$screen_width" {
+ type = "String"
+ comment = "column_materializer::properties::$screen_width"
+ after = "mat_$screen_height"
+ }
+ column "mat_tag" {
+ type = "String"
+ comment = "column_materializer::properties::tag"
+ after = "mat_$screen_width"
+ }
+ column "mat_$app_build" {
+ type = "String"
+ comment = "column_materializer::properties::$app_build"
+ after = "mat_tag"
+ }
+ column "mat_surface_tag" {
+ type = "String"
+ comment = "column_materializer::properties::surface_tag"
+ after = "mat_$app_build"
+ }
+ column "mat_survey_responses_count_in_period" {
+ type = "String"
+ comment = "column_materializer::properties::survey_responses_count_in_period"
+ after = "mat_surface_tag"
+ }
+ column "mat_event_count_in_month" {
+ type = "String"
+ comment = "column_materializer::properties::event_count_in_month"
+ after = "mat_survey_responses_count_in_period"
+ }
+ column "mat_ramp" {
+ type = "String"
+ comment = "column_materializer::properties::ramp"
+ after = "mat_event_count_in_month"
+ }
+ column "mat_auto_chapters" {
+ type = "String"
+ comment = "column_materializer::properties::auto_chapters"
+ after = "mat_ramp"
+ }
+ column "mat_sentiment_analysis" {
+ type = "String"
+ comment = "column_materializer::properties::sentiment_analysis"
+ after = "mat_auto_chapters"
+ }
+ column "mat_redact_pii" {
+ type = "String"
+ comment = "column_materializer::properties::redact_pii"
+ after = "mat_sentiment_analysis"
+ }
+ column "mat_content_safety" {
+ type = "String"
+ comment = "column_materializer::properties::content_safety"
+ after = "mat_redact_pii"
+ }
+ column "mat_iab_categories" {
+ type = "String"
+ comment = "column_materializer::properties::iab_categories"
+ after = "mat_content_safety"
+ }
+ column "mat_auto_highlights" {
+ type = "String"
+ comment = "column_materializer::properties::auto_highlights"
+ after = "mat_iab_categories"
+ }
+ column "mat_entity_detection" {
+ type = "String"
+ comment = "column_materializer::properties::entity_detection"
+ after = "mat_auto_highlights"
+ }
+ column "mat_summarization" {
+ type = "String"
+ comment = "column_materializer::properties::summarization"
+ after = "mat_entity_detection"
+ }
+ column "mat_pp_val_region" {
+ type = "String"
+ comment = "column_materializer::person_properties::val_region"
+ after = "mat_summarization"
+ }
+ column "mat_client_id" {
+ type = "String"
+ comment = "column_materializer::properties::client_id"
+ after = "mat_pp_val_region"
+ }
+ column "mat_$geoip_country_code" {
+ type = "String"
+ comment = "column_materializer::properties::$geoip_country_code"
+ after = "mat_client_id"
+ }
+ column "mat_disfluencies" {
+ type = "String"
+ comment = "column_materializer::properties::disfluencies"
+ after = "mat_$geoip_country_code"
+ }
+ column "mat_filter_profanity" {
+ type = "String"
+ comment = "column_materializer::properties::filter_profanity"
+ after = "mat_disfluencies"
+ }
+ column "mat_speaker_labels" {
+ type = "String"
+ comment = "column_materializer::properties::speaker_labels"
+ after = "mat_filter_profanity"
+ }
+ column "mat_language_detection" {
+ type = "String"
+ comment = "column_materializer::properties::language_detection"
+ after = "mat_speaker_labels"
+ }
+ column "mat_product_analytics_projected_amount" {
+ type = "String"
+ comment = "column_materializer::properties::product_analytics_projected_amount"
+ after = "mat_language_detection"
+ }
+ column "mat_recordings_projected_amount" {
+ type = "String"
+ comment = "column_materializer::properties::recordings_projected_amount"
+ after = "mat_product_analytics_projected_amount"
+ }
+ column "mat_events_projected_amount" {
+ type = "String"
+ comment = "column_materializer::properties::events_projected_amount"
+ after = "mat_recordings_projected_amount"
+ }
+ column "mat_session_replay_projected_amount" {
+ type = "String"
+ comment = "column_materializer::properties::session_replay_projected_amount"
+ after = "mat_events_projected_amount"
+ }
+ column "mat_total_usd" {
+ type = "String"
+ comment = "column_materializer::properties::total_usd"
+ after = "mat_session_replay_projected_amount"
+ }
+ column "mat_stripe_amount_paid" {
+ type = "String"
+ comment = "column_materializer::properties::stripe_amount_paid"
+ after = "mat_total_usd"
+ }
+ column "mat_workspace" {
+ type = "String"
+ comment = "column_materializer::properties::workspace"
+ after = "mat_stripe_amount_paid"
+ }
+ column "mat_created_at" {
+ type = "String"
+ comment = "column_materializer::properties::created_at"
+ after = "mat_workspace"
+ }
+ column "mat_kind" {
+ type = "String"
+ comment = "column_materializer::properties::kind"
+ after = "mat_created_at"
+ }
+ column "mat_product" {
+ type = "String"
+ comment = "column_materializer::properties::product"
+ after = "mat_kind"
+ }
+ column "mat_message" {
+ type = "String"
+ comment = "column_materializer::properties::message"
+ after = "mat_product"
+ }
+ column "mat_initiator" {
+ type = "String"
+ comment = "column_materializer::properties::initiator"
+ after = "mat_message"
+ }
+ column "mat_query" {
+ type = "String"
+ comment = "column_materializer::properties::query"
+ after = "mat_initiator"
+ }
+ column "mat_$survey_id" {
+ type = "String"
+ comment = "column_materializer::properties::$survey_id"
+ after = "mat_query"
+ }
+ column "mat_$survey_response_1" {
+ type = "String"
+ comment = "column_materializer::properties::$survey_response_1"
+ after = "mat_$survey_id"
+ }
+ column "mat_ticketId" {
+ type = "String"
+ comment = "column_materializer::properties::ticketId"
+ after = "mat_$survey_response_1"
+ }
+ column "mat_$survey_response" {
+ type = "String"
+ comment = "column_materializer::properties::$survey_response"
+ after = "mat_ticketId"
+ }
+ column "mat_conceptName" {
+ type = "String"
+ comment = "column_materializer::properties::conceptName"
+ after = "mat_$survey_response"
+ }
+ column "mat_apiName" {
+ type = "String"
+ comment = "column_materializer::properties::apiName"
+ after = "mat_conceptName"
+ }
+ column "mat_workplace_billing_plan" {
+ type = "String"
+ comment = "column_materializer::properties::workplace_billing_plan"
+ after = "mat_apiName"
+ }
+ column "mat_$el_text" {
+ type = "String"
+ comment = "column_materializer::properties::$el_text"
+ after = "mat_workplace_billing_plan"
+ }
+ column "mat_recording_count_in_period" {
+ type = "String"
+ comment = "column_materializer::properties::recording_count_in_period"
+ after = "mat_$el_text"
+ }
+ column "mat_$os_version" {
+ type = "String"
+ comment = "column_materializer::properties::$os_version"
+ after = "mat_recording_count_in_period"
+ }
+ column "mat_orderId" {
+ type = "String"
+ comment = "column_materializer::properties::orderId"
+ after = "mat_$os_version"
+ }
+ column "mat_commit_sha" {
+ type = "String"
+ comment = "column_materializer::properties::commit_sha"
+ after = "mat_orderId"
+ }
+ column "mat_$feature_flag_payloads" {
+ type = "String"
+ comment = "column_materializer::properties::$feature_flag_payloads"
+ after = "mat_commit_sha"
+ }
+ column "mat_event_count_in_period" {
+ type = "String"
+ comment = "column_materializer::properties::event_count_in_period"
+ after = "mat_$feature_flag_payloads"
+ }
+ column "mat_$groups" {
+ type = "String"
+ comment = "column_materializer::properties::$groups"
+ after = "mat_event_count_in_period"
+ }
+ column "mat_$feature_flag" {
+ type = "String"
+ comment = "column_materializer::properties::$feature_flag"
+ after = "mat_$groups"
+ }
+ column "mat_utm_content" {
+ type = "String"
+ comment = "column_materializer::properties::utm_content"
+ after = "mat_$feature_flag"
+ }
+ column "mat_gclid" {
+ type = "String"
+ comment = "column_materializer::properties::gclid"
+ after = "mat_utm_content"
+ }
+ column "mat_gad_source" {
+ type = "String"
+ comment = "column_materializer::properties::gad_source"
+ after = "mat_gclid"
+ }
+ column "mat_gbraid" {
+ type = "String"
+ comment = "column_materializer::properties::gbraid"
+ after = "mat_gad_source"
+ }
+ column "mat_wbraid" {
+ type = "String"
+ comment = "column_materializer::properties::wbraid"
+ after = "mat_gbraid"
+ }
+ column "mat_fbclid" {
+ type = "String"
+ comment = "column_materializer::properties::fbclid"
+ after = "mat_wbraid"
+ }
+ column "mat_msclkid" {
+ type = "String"
+ comment = "column_materializer::properties::msclkid"
+ after = "mat_fbclid"
+ }
+ column "mat_organization_id" {
+ type = "String"
+ comment = "column_materializer::properties::organization_id"
+ after = "mat_msclkid"
+ }
+ column "mat_owner_type" {
+ type = "String"
+ comment = "column_materializer::properties::owner_type"
+ after = "mat_organization_id"
+ }
+ column "mat_device_type" {
+ type = "String"
+ comment = "column_materializer::properties::device_type"
+ after = "mat_owner_type"
+ }
+ column "mat_$device_id" {
+ type = "String"
+ comment = "column_materializer::properties::$device_id"
+ after = "mat_device_type"
+ }
+ column "mat_pp_$geoip_continent_name" {
+ type = "String"
+ comment = "column_materializer::person_properties::$geoip_continent_name"
+ after = "mat_$device_id"
+ }
+ column "mat_$feature_flag_response" {
+ type = "String"
+ comment = "column_materializer::properties::$feature_flag_response"
+ after = "mat_pp_$geoip_continent_name"
+ }
+ column "mat_pp_utm_source" {
+ type = "String"
+ comment = "column_materializer::person_properties::utm_source"
+ after = "mat_$feature_flag_response"
+ }
+ column "mat_pp_$referring_domain" {
+ type = "String"
+ comment = "column_materializer::person_properties::$referring_domain"
+ after = "mat_pp_utm_source"
+ }
+ column "mat_pp_Email_Domain" {
+ type = "String"
+ comment = "column_materializer::person_properties::Email Domain"
+ after = "mat_pp_$referring_domain"
+ }
+ column "mat_machine_id" {
+ type = "String"
+ comment = "column_materializer::properties::machine_id"
+ after = "mat_pp_Email_Domain"
+ }
+ column "mat_user_email_domain" {
+ type = "String"
+ comment = "column_materializer::properties::user_email_domain"
+ after = "mat_machine_id"
+ }
+ column "mat_$lib_version__minor" {
+ type = "String"
+ comment = "column_materializer::properties::$lib_version__minor"
+ after = "mat_user_email_domain"
+ }
+ column "mat_region" {
+ type = "String"
+ comment = "column_materializer::properties::region"
+ after = "mat_$lib_version__minor"
+ }
+ column "mat_pp_user_email_domain" {
+ type = "String"
+ comment = "column_materializer::person_properties::user_email_domain"
+ after = "mat_region"
+ }
+ column "mat_url_promotion_id" {
+ type = "String"
+ comment = "column_materializer::properties::url_promotion_id"
+ after = "mat_pp_user_email_domain"
+ }
+ column "mat_$lib_custom_api_host" {
+ type = "String"
+ comment = "column_materializer::properties::$lib_custom_api_host"
+ after = "mat_url_promotion_id"
+ }
+ column "mat_user_platform" {
+ type = "String"
+ comment = "column_materializer::properties::user_platform"
+ after = "person_mode"
+ }
+ column "mat_pp_$geoip_country_name" {
+ type = "String"
+ comment = "column_materializer::person_properties::$geoip_country_name"
+ after = "mat_user_platform"
+ }
+ column "mat_environment" {
+ type = "String"
+ comment = "column_materializer::properties::environment"
+ after = "mat_pp_$geoip_country_name"
+ }
+ column "mat_customer_email" {
+ type = "String"
+ comment = "column_materializer::properties::customer_email"
+ after = "mat_environment"
+ }
+ column "mat_client_name" {
+ type = "String"
+ comment = "column_materializer::properties::client_name"
+ after = "mat_customer_email"
+ }
+ column "mat_screen_name" {
+ type = "String"
+ comment = "column_materializer::properties::screen_name"
+ after = "mat_client_name"
+ }
+ column "mat_app_version" {
+ type = "String"
+ comment = "column_materializer::properties::app_version"
+ after = "mat_screen_name"
+ }
+ column "mat_subdomain" {
+ type = "String"
+ comment = "column_materializer::properties::subdomain"
+ after = "is_deleted"
+ }
+ column "mat_$device" {
+ type = "String"
+ comment = "column_materializer::properties::$device"
+ after = "mat_subdomain"
+ }
+ column "mat_id" {
+ type = "String"
+ comment = "column_materializer::properties::id"
+ after = "mat_$device"
+ }
+ column "mat_record_id" {
+ type = "String"
+ comment = "column_materializer::properties::record_id"
+ after = "mat_id"
+ }
+ column "mat_referrer_id" {
+ type = "String"
+ comment = "column_materializer::properties::record_id"
+ after = "mat_record_id"
+ }
+ column "mat_$exception_issue_id" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$exception_issue_id"
+ after = "mat_referrer_id"
+ }
+ column "mat_$exception_fingerprint" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$exception_fingerprint"
+ after = "mat_$exception_issue_id"
+ }
+ column "mat_$web_vitals_LCP_value" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$web_vitals_LCP_value"
+ after = "mat_$exception_fingerprint"
+ }
+ column "mat_$web_vitals_FCP_value" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$web_vitals_FCP_value"
+ after = "mat_$web_vitals_LCP_value"
+ }
+ column "mat_$web_vitals_CLS_value" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$web_vitals_CLS_value"
+ after = "mat_$web_vitals_FCP_value"
+ }
+ column "mat_$web_vitals_INP_value" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$web_vitals_INP_value"
+ after = "mat_$web_vitals_CLS_value"
+ }
+ column "mat_$viewport_width" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$viewport_width"
+ after = "mat_$web_vitals_INP_value"
+ }
+ column "mat_$viewport_height" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$viewport_height"
+ after = "mat_$viewport_width"
+ }
+ column "mat_$anon_distinct_id" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$anon_distinct_id"
+ after = "mat_$viewport_height"
+ }
+ column "mat_$ai_trace_id" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$ai_trace_id"
+ after = "person_properties_map_custom"
+ }
+ column "mat_$ai_model" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$ai_model"
+ after = "mat_$ai_trace_id"
+ }
+ column "mat_$ai_provider" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$ai_provider"
+ after = "mat_$ai_model"
+ }
+ column "mat_$ai_parent_id" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$ai_parent_id"
+ after = "mat_$ai_provider"
+ }
+ column "mat_$ai_span_id" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$ai_span_id"
+ after = "mat_$ai_parent_id"
+ }
+ column "mat_$ai_http_status" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$ai_http_status"
+ after = "mat_$ai_span_id"
+ }
+ column "mat_$exception_types" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$exception_types"
+ after = "mat_$ai_http_status"
+ }
+ column "mat_$exception_values" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$exception_values"
+ after = "mat_$exception_types"
+ }
+ column "mat_$exception_sources" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$exception_sources"
+ after = "mat_$exception_values"
+ }
+ column "mat_$exception_functions" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$exception_functions"
+ after = "mat_$exception_sources"
+ }
+ column "mat_$process_person_profile" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$process_person_profile"
+ after = "$session_id_uuid"
+ }
+ column "mat_$is_identified" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$is_identified"
+ after = "properties_group_ai"
+ }
+ column "dmat_numeric_0" {
+ type = "Nullable(Float64)"
+ after = "dmat_string_9"
+ }
+ column "dmat_numeric_1" {
+ type = "Nullable(Float64)"
+ after = "dmat_numeric_0"
+ }
+ column "dmat_numeric_2" {
+ type = "Nullable(Float64)"
+ after = "dmat_numeric_1"
+ }
+ column "dmat_numeric_3" {
+ type = "Nullable(Float64)"
+ after = "dmat_numeric_2"
+ }
+ column "dmat_numeric_4" {
+ type = "Nullable(Float64)"
+ after = "dmat_numeric_3"
+ }
+ column "dmat_numeric_5" {
+ type = "Nullable(Float64)"
+ after = "dmat_numeric_4"
+ }
+ column "dmat_numeric_6" {
+ type = "Nullable(Float64)"
+ after = "dmat_numeric_5"
+ }
+ column "dmat_numeric_7" {
+ type = "Nullable(Float64)"
+ after = "dmat_numeric_6"
+ }
+ column "dmat_numeric_8" {
+ type = "Nullable(Float64)"
+ after = "dmat_numeric_7"
+ }
+ column "dmat_numeric_9" {
+ type = "Nullable(Float64)"
+ after = "dmat_numeric_8"
+ }
+ column "dmat_bool_0" {
+ type = "Nullable(UInt8)"
+ after = "dmat_numeric_9"
+ }
+ column "dmat_bool_1" {
+ type = "Nullable(UInt8)"
+ after = "dmat_bool_0"
+ }
+ column "dmat_bool_2" {
+ type = "Nullable(UInt8)"
+ after = "dmat_bool_1"
+ }
+ column "dmat_bool_3" {
+ type = "Nullable(UInt8)"
+ after = "dmat_bool_2"
+ }
+ column "dmat_bool_4" {
+ type = "Nullable(UInt8)"
+ after = "dmat_bool_3"
+ }
+ column "dmat_bool_5" {
+ type = "Nullable(UInt8)"
+ after = "dmat_bool_4"
+ }
+ column "dmat_bool_6" {
+ type = "Nullable(UInt8)"
+ after = "dmat_bool_5"
+ }
+ column "dmat_bool_7" {
+ type = "Nullable(UInt8)"
+ after = "dmat_bool_6"
+ }
+ column "dmat_bool_8" {
+ type = "Nullable(UInt8)"
+ after = "dmat_bool_7"
+ }
+ column "dmat_bool_9" {
+ type = "Nullable(UInt8)"
+ after = "dmat_bool_8"
+ }
+ column "dmat_datetime_0" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ after = "dmat_bool_9"
+ }
+ column "dmat_datetime_1" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ after = "dmat_datetime_0"
+ }
+ column "dmat_datetime_2" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ after = "dmat_datetime_1"
+ }
+ column "dmat_datetime_3" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ after = "dmat_datetime_2"
+ }
+ column "dmat_datetime_4" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ after = "dmat_datetime_3"
+ }
+ column "dmat_datetime_5" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ after = "dmat_datetime_4"
+ }
+ column "dmat_datetime_6" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ after = "dmat_datetime_5"
+ }
+ column "dmat_datetime_7" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ after = "dmat_datetime_6"
+ }
+ column "dmat_datetime_8" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ after = "dmat_datetime_7"
+ }
+ column "dmat_datetime_9" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ after = "dmat_datetime_8"
+ }
+ column "mat_$ai_total_cost_usd" {
+ type = "Nullable(String)"
+ comment = "column_materializer::properties::$ai_total_cost_usd"
+ after = "historical_migration"
+ }
+ column "properties_group_ai_large" {
+ type = "Map(String, String)"
+ after = "mat_$ai_total_cost_usd"
+ }
+ }
}
diff --git a/posthog/clickhouse/hcl/roles/shared/event_base.hcl b/posthog/clickhouse/hcl/roles/shared/event_base.hcl
new file mode 100644
index 000000000000..0b5dbe71564a
--- /dev/null
+++ b/posthog/clickhouse/hcl/roles/shared/event_base.hcl
@@ -0,0 +1,137 @@
+# The abstract events core: the column list every copy of the events family shares.
+# Its extenders are the sharded storage table and the data node's Distributed proxy
+# (roles/data/shared) plus the sessions nodes' replicas of that proxy
+# (roles/sessions/shared). It lives here because roles/shared is the one layer every
+# role composes, and an abstract emits nothing on a node that does not extend it.
+database "posthog" {
+ table "_event_base" {
+ abstract = true
+ column "uuid" {
+ type = "UUID"
+ }
+ column "event" {
+ type = "String"
+ }
+ column "properties" {
+ type = "String"
+ }
+ column "timestamp" {
+ type = "DateTime64(6, 'UTC')"
+ }
+ column "team_id" {
+ type = "Int64"
+ }
+ column "distinct_id" {
+ type = "String"
+ }
+ column "created_at" {
+ type = "DateTime64(6, 'UTC')"
+ }
+ column "$group_0" {
+ type = "String"
+ }
+ column "$group_1" {
+ type = "String"
+ }
+ column "$group_2" {
+ type = "String"
+ }
+ column "$group_3" {
+ type = "String"
+ }
+ column "$group_4" {
+ type = "String"
+ }
+ column "$window_id" {
+ type = "String"
+ }
+ column "$session_id" {
+ type = "String"
+ }
+ column "inserted_at" {
+ type = "Nullable(DateTime64(6, 'UTC'))"
+ default = "now64()"
+ }
+ column "person_mode" {
+ type = "Enum8('full'=0, 'propertyless'=1, 'force_upgrade'=2)"
+ }
+ column "elements_chain_href" {
+ type = "String"
+ }
+ column "elements_chain_texts" {
+ type = "Array(String)"
+ }
+ column "elements_chain_ids" {
+ type = "Array(String)"
+ }
+ column "elements_chain_elements" {
+ type = "Array(Enum8('a'=1, 'button'=2, 'form'=3, 'input'=4, 'select'=5, 'textarea'=6, 'label'=7))"
+ }
+ column "properties_group_custom" {
+ type = "Map(String, String)"
+ }
+ column "properties_group_feature_flags" {
+ type = "Map(String, String)"
+ }
+ column "is_deleted" {
+ type = "Bool"
+ }
+ column "person_properties_map_custom" {
+ type = "Map(String, String)"
+ }
+ column "$session_id_uuid" {
+ type = "Nullable(UInt128)"
+ }
+ column "consumer_breadcrumbs" {
+ type = "Array(String)"
+ }
+ column "properties_group_ai" {
+ type = "Map(String, String)"
+ }
+ column "mat_historical_migration" {
+ type = "Nullable(String)"
+ }
+ column "mat_$ai_session_id" {
+ type = "Nullable(String)"
+ }
+ column "mat_$ai_is_error" {
+ type = "Nullable(String)"
+ }
+ column "dmat_string_0" {
+ type = "Nullable(String)"
+ }
+ column "dmat_string_1" {
+ type = "Nullable(String)"
+ }
+ column "dmat_string_2" {
+ type = "Nullable(String)"
+ }
+ column "dmat_string_3" {
+ type = "Nullable(String)"
+ }
+ column "dmat_string_4" {
+ type = "Nullable(String)"
+ }
+ column "dmat_string_5" {
+ type = "Nullable(String)"
+ }
+ column "dmat_string_6" {
+ type = "Nullable(String)"
+ }
+ column "dmat_string_7" {
+ type = "Nullable(String)"
+ }
+ column "dmat_string_8" {
+ type = "Nullable(String)"
+ }
+ column "dmat_string_9" {
+ type = "Nullable(String)"
+ }
+ column "historical_migration" {
+ type = "Bool"
+ }
+ column "mat_$ai_prompt_name" {
+ type = "Nullable(String)"
+ }
+ }
+}