Langsung ke konten
Skillpedia
Database41k Β· #6845

setting-up-warehouse-properties

Fungsinya

Skill ini memetakan seluruh tabel atau view warehouse ke orang atau grup di PostHog, sesuai jadwal sinkronisasi tabel tersebut. Ditujukan untuk tim yang saat ini menjalankan skrip untuk mengirim data pengguna ke PostHog.

Kapan dipakai

  • βœ“Saat Anda memiliki skrip harian yang mengirim sifat pengguna ke PostHog dan ingin PostHog menariknya sendiri.
  • βœ“Saat Anda ingin memetakan tabel lebar berisi atribut pelanggan ke orang sekaligus.
  • βœ“Saat Anda berada di area properti warehouse dan ingin menyiapkan pemetaan tabel secara lengkap.

Link skill

https://github.com/PostHog/posthog/blob/master/products/customer_analytics/skills/setting-up-warehouse-properties/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/PostHog/posthog/blob/master/products/customer_analytics/skills/setting-up-warehouse-properties/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œGanti skrip identify harian kami dengan memetakan tabel atribut pelanggan kami ke properti orang di PostHog.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

AI memilih kolom mana yang menjadi properti dan namanya, lalu menyimpan seluruh pemetaan dalam satu permintaan. Setelah itu, PostHog memperbarui orang dari tabel pada setiap sinkronisasi.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Setting up warehouse properties

Warehouse properties write columns from a warehouse table or materialized view onto matching people or groups, on the schedule that table already syncs on. They replace a cron that sends $set identify events.

The mapping is the whole job. Most tables worth mapping are wide, so the work is deciding which columns become properties and what they are called β€” not making many API calls. One source carries the entire mapping: custom-property-sources-create takes the complete column_property_map in a single request, so never loop per column.

When to use this skill

  • "Sync my postgres.customer_attributes columns to person properties"
  • "We send a daily identify job from our warehouse, can PostHog pull it instead?"
  • "Map this table to people" / "reverse ETL into PostHog"
  • The user is looking at Data β†’ Warehouse properties and wants a whole table mapped

Use setting-up-a-data-warehouse-source instead when the table is not in the warehouse yet. This skill starts once the data is syncing.

Tools

Tool Purpose
external-data-schemas-list Find a synced table and its schema id (the external_data_schema binding); columns are omitted here
external-data-schemas-retrieve Read one synced table's columns and types by schema id
view-list Find a materialized view and its column schema (the saved_query binding)
view-get Read one materialized view's columns and types by id
custom-property-definitions-list See what warehouse properties already exist for the team
custom-property-definitions-create Create the definition the source attaches to (target_type: person or group)
custom-property-sources-create Bind the definition to the table, carrying the whole column_property_map
custom-property-sources-backfill Populate historical rows after creating the mapping
custom-property-sources-runs-list Check the run funnel after a sync or backfill
custom-property-sources-sync Run the underlying table now

Person and group targets need the warehouse-person-properties feature. A group target additionally needs the group:write scope; without it, custom-property-sources-create refuses the group definition.

The flow

1. Find the table and its columns

For a synced table, external-data-schemas-list gives you the schema id (the external_data_schema binding), and external-data-schemas-retrieve returns that schema's columns and types.

For a materialized view, view-list finds the view and its column schema, and view-get returns one view's columns by id; a view binds by saved_query instead, and must already be materialized, since an unmaterialized view has no data to read and the create call rejects it.

2. Pick the identifier column, and say why it matters

Ask which column holds the PostHog distinct ID (person targets) or the group key (group targets). This is the single most common reason a mapping silently does nothing, so do not guess it from a name like id or user_id without confirming.

Two properties of the sync are worth stating plainly before the user commits:

  • It only updates people or groups that already exist in PostHog. Rows that match nobody are skipped, and the run reports them as skipped_missing_person. It does not create people.
  • Null values are skipped, not written. A column that is null for a row leaves that property as it was. If the user expects a null to clear a property, warehouse properties will not do it.

3. Propose the mapping before creating anything

Build the full column_property_map β€” {warehouse_column: property_name} β€” and show it to the user for approval. Default to **the same name on both side

Pertanyaan umum

Apakah saya perlu mengatur setiap kolom secara terpisah?

Tidak. Seluruh pemetaan kolom disimpan dalam satu permintaan.

Apakah tabelnya harus sudah ada di warehouse?

Ya. Tabel harus sudah disinkronkan. Menghubungkannya adalah langkah pengaturan terpisah.

Bagaimana orang dicocokkan dengan baris?

Setiap baris harus cocok dengan orang atau grup melalui kolom ID unik atau kunci grup.

Detail

Deskripsi asli dari pembuat

Populate person or group properties from a data warehouse table or materialized view, so warehouse columns become properties usable in feature flags, cohorts, and insights. Use when the user wants to "sync my Postgres columns to person properties", "map a warehouse table to people", "replace our daily identify cron", "update person properties from the warehouse", or asks for reverse ETL into PostHog. Covers picking the table and the identifier column, proposing a whole-table column mapping in one call, excluding identity and reserved properties, checking collisions with properties that already

repo: PostHog/posthog

Popularitas

Bintang GitHub
41k
Peringkat
#6845
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa