RAW.POLYTOMIC_HUBSPOT — Schema Profile

Source: HubSpot via Polytomic
Profiled: 2026-03-02


Tables

TableRowsLast AlteredGrain
DEAL_PROPERTY_HISTORY63,1992026-03-02One row per deal + property + change
COMPANY_PROPERTY_HISTORY356,1532026-03-02One row per company + property + change

Schema (Both Tables)

ColumnTypeNotes
DEAL_ID / COMPANY_IDTEXTEntity ID
PROPERTY_NAMETEXTHubSpot property name
SOURCE_IDTEXTSource of change
SOURCE_TYPETEXTe.g. CRM_UI, INTERNAL_PROCESSING, CALCULATED
TIMESTAMPTEXTISO-8601 when property changed
UPDATED_BY_USER_IDTEXTUser who made change (if applicable)
VALUETEXTNew value (string)
POLYTOMIC*Polytomic metadata

DEAL_PROPERTY_HISTORY

  • Distinct properties: 283
  • Key properties (examples): dealname, dealstage, amount, closedate, createdate, dealtype, deal_source, deal_priority, hs_is_closed, hs_is_closed_won
  • Pivot required: To get current deal state, use MAX(TIMESTAMP) per DEAL_ID + PROPERTY_NAME and pivot, or use LAST_VALUE(VALUE) OVER (PARTITION BY DEAL_ID, PROPERTY_NAME ORDER BY TIMESTAMP)

COMPANY_PROPERTY_HISTORY

  • Distinct properties: 170
  • Key properties (examples): domain, name, createdate, annualrevenue, address, country, city, industry, hs_is_contact

Staging Model Guidance

  1. History → current state: Pivot or window to get latest value per entity per property
  2. TIMESTAMP: Cast to TIMESTAMP for date filters
  3. VALUE: May be numeric, date, or string — cast as needed per property
  4. Deals for revenue: Join amount, closedate, dealstage for pipeline/revenue views