Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
DE-506 Investigate table associations_deals_companies (#33)
Browse files Browse the repository at this point in the history
* Set parent replication key to high

* Changed state partitionning key to id (as opposed to id-toObjectId
  • Loading branch information
SBurwash authored Sep 15, 2022
1 parent d713ddd commit 2a98e9e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tap_hubspot/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ class AssociationsDealsToCompaniesStream(HubspotStream):
deal_id = ""
replication_method = "FULL_TABLE"
primary_keys = ["id", "toObjectId"]
state_partitioning_keys = []
state_partitioning_keys = ["id"]
replication_key = ""
parent_stream_type = DealsStream
schema_filepath = SCHEMAS_DIR / "associations_all.json"

ignore_parent_replication_keys = False
ignore_parent_replication_keys = True

def get_url_params(
self, context: Optional[dict], next_page_token: Optional[Any]
Expand All @@ -208,12 +208,12 @@ class AssociationsDealsToContactsStream(HubspotStream):
deal_id = ""
replication_method = "FULL_TABLE"
primary_keys = ["id", "toObjectId"]
state_partitioning_keys = []
state_partitioning_keys = ["id"]
replication_key = ""
parent_stream_type = DealsStream
schema_filepath = SCHEMAS_DIR / "associations_all.json"

ignore_parent_replication_keys = False
ignore_parent_replication_keys = True

def get_url_params(
self, context: Optional[dict], next_page_token: Optional[Any]
Expand All @@ -240,7 +240,7 @@ class AssociationsContactsToDealsStream(HubspotStream):
deal_id = ""
replication_method = "FULL_TABLE"
primary_keys = ["id", "toObjectId"]
state_partitioning_keys = []
state_partitioning_keys = ["id"]
replication_key = ""
parent_stream_type = ContactsStream
schema_filepath = SCHEMAS_DIR / "associations_all.json"
Expand Down Expand Up @@ -272,12 +272,12 @@ class AssociationsContactsToCompaniesStream(HubspotStream):
deal_id = ""
replication_method = "FULL_TABLE"
primary_keys = ["id", "toObjectId"]
state_partitioning_keys = []
state_partitioning_keys = ["id"]
replication_key = ""
parent_stream_type = ContactsStream
schema_filepath = SCHEMAS_DIR / "associations_all.json"

ignore_parent_replication_keys = False
ignore_parent_replication_keys = True

def get_url_params(
self, context: Optional[dict], next_page_token: Optional[Any]
Expand All @@ -304,12 +304,12 @@ class AssociationsCompaniesToContactsStream(HubspotStream):
deal_id = ""
replication_method = "FULL_TABLE"
primary_keys = ["id", "toObjectId"]
state_partitioning_keys = []
state_partitioning_keys = ["id"]
replication_key = ""
parent_stream_type = CompaniesStream
schema_filepath = SCHEMAS_DIR / "associations_all.json"

ignore_parent_replication_keys = False
ignore_parent_replication_keys = True

def get_url_params(
self, context: Optional[dict], next_page_token: Optional[Any]
Expand All @@ -336,12 +336,12 @@ class AssociationsCompaniesToDealsStream(HubspotStream):
deal_id = ""
replication_method = "FULL_TABLE"
primary_keys = ["id", "toObjectId"]
state_partitioning_keys = []
state_partitioning_keys = ["id"]
replication_key = ""
parent_stream_type = CompaniesStream
schema_filepath = SCHEMAS_DIR / "associations_all.json"

ignore_parent_replication_keys = False
ignore_parent_replication_keys = True

def get_url_params(
self, context: Optional[dict], next_page_token: Optional[Any]
Expand Down

0 comments on commit 2a98e9e

Please sign in to comment.