#87048·airbyte

[source-hubspot] Allow property_history streams to sync a configurable property list

Author: michaelnardacciCreated Sep 28, 2026Updated Oct 1, 2026
Labelstype/bugarea/connectorscommunityneeds-triageconnectors/source/hubspotteam/extensibilityautoteam

Connector Name

source-hubspot

Connector Version

6.8.2

What step the error happened?

During the sync

Relevant information

Summary

The *_property_history streams (deals_property_history, contacts_property_history, companies_property_history) always request history for every property on the object. There is no way to limit them to the properties a user actually needs, even though HubSpot's API supports exactly that.

Request: allow the property list for these streams to be configured, rather than always sourcing it from /properties/v2/<object>/properties.

Why this matters

On our portal, deals_property_history syncs 116,907,304 rows across 404 properties. Exactly one property is consumed downstream — dealstage, at 1,323,900 rows (1.13%). The remaining 98.87% is fetched, stored and never read.

The cost is not the row volume, it is the per-property iteration: the stream takes 19+ hours per sync against ~679,629 deals, while every other enabled stream in the same connection finishes in ~3 hours. It is by far the longest leg of the sync and it sets the wall clock for the entire connection.

A second, related effect: 52,747,828 of those rows (45%) are HubSpot calculated properties (hs_analytics_*, num_notes, notes_last_updated, hs_deal_score, hs_is_stalled_after_timestamp, etc.). These are the same properties the connector docs identify as causing cursor drift and silent record loss:

HubSpot calculated properties — formula fields, rollup summaries, and analytics properties such as hs_analytics_* — always have a timestamp that mirrors the time of the latest sync, not the time of the last user-initiated change. This causes the sync cursor to advance past records that have not yet been synced, which can result in missing records.

property_history_lookback_window (added in 6.6.1) mitigates that by re-fetching a trailing window, which makes an already long sync longer. Being able to exclude those properties at the request would address the volume and the cursor-drift cause together, rather than compensating for it.

The API already supports it

HubSpot's propertiesWithHistory parameter accepts a named property list — the official docs use propertiesWithHistory: ["dealstage"] as the worked example: https://developers.hubspot.com/docs/reference/api/crm/objects/deals

Where the connector hardcodes it

airbyte-integrations/connectors/source-hubspot/manifest.yaml, deals_property_history_stream — identical in v6.8.2 and current master (6.9.3):

yaml
request_parameters:
  propertyMode: value_and_history
  propertiesWithHistory:
    type: QueryProperties
    property_list:
      type: PropertiesFromEndpoint        # always enumerates ALL properties
      property_field_path: ["name"]
      retriever:
        ...
        path: /properties/v2/deals/properties
    property_chunking:
      type: PropertyChunking
      property_limit_type: characters
      property_limit: 15000

QueryProperties already accepts a static property_list, so the mechanism exists — it is only the default wiring that forces the full enumeration.

Suggested shape

An optional config field (e.g. deals_property_history_properties, or a single map for all three streams) that, when set, supplies the property list and otherwise falls back to today's PropertiesFromEndpoint behaviour. Backwards compatible: unset = current behaviour.

Workarounds tried

  • Forking in the Connector Builder — not viable for self-hosted deployments without custom Python components enabled. deals_property_history depends on HubspotPropertyHistoryExtractor from components.py, so a forked connector cannot execute the stream.
  • Disabling the stream — loses deal-stage transition history entirely.
  • Airbyte field selection — operates on columns, not on the property row values, so it does not reduce what is requested.

Relevant log output

bash

Contribute

  • Yes, I want to contribute