본문으로 건너뛰기
Skillpedia
데이터베이스41k · #6845

setting-up-warehouse-properties

하는 일

이 스킬은 전체 웨어하우스 테이블이나 뷰를 테이블이 이미 동기화되는 일정에 따라 PostHog의 사람이나 그룹에 매핑합니다. 지금 사용자 데이터를 PostHog로 보내는 스크립트를 실행하는 팀을 위한 것입니다.

사용하는 경우

  • ✓사용자 특성을 PostHog로 보내는 매일 스크립트가 있고, PostHog가 대신 가져오기를 원할 때.
  • ✓고객 속성이 담긴 넓은 테이블을 한 번에 사람 속성으로 매핑하고 싶을 때.
  • ✓웨어하우스 속성 영역에 있고 전체 테이블 매핑을 설정하고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/customer_analytics/skills/setting-up-warehouse-properties/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“고객 속성 테이블을 사람 속성으로 매핑해서 PostHog의 매일 identify 스크립트를 대체해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 어떤 열이 속성이 되고 이름이 무엇인지 고른 뒤, 전체 매핑을 한 번의 요청으로 저장합니다. 그 후 PostHog는 동기화될 때마다 테이블에서 사람들을 업데이트합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

자주 묻는 질문

열마다 따로 설정해야 하나요?

아니요. 전체 열 매핑이 한 번의 요청으로 저장됩니다.

테이블이 이미 웨어하우스에 있어야 하나요?

네. 테이블이 이미 동기화 중이어야 합니다. 연결은 별도의 설정 단계입니다.

사람은 행과 어떻게 맞춰지나요?

각 행은 고유한 ID나 그룹 키 열로 사람이나 그룹과 맞아야 합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
41k
순위
#6845
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬