Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
- name: HubSpot
sourceDefinitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c
dockerRepository: airbyte/source-hubspot
dockerImageTag: 0.1.47
dockerImageTag: 0.1.48
documentationUrl: https://docs.airbyte.io/integrations/sources/hubspot
icon: hubspot.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3331,7 +3331,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-hubspot:0.1.47"
- dockerImage: "airbyte/source-hubspot:0.1.48"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/hubspot"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-hubspot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_hubspot ./source_hubspot
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.47
LABEL io.airbyte.version=0.1.48
LABEL io.airbyte.name=airbyte/source-hubspot
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ def _cast_value(cls, declared_field_types: List, field_name: str, field_value: A
if target_type_name == "number":
# do not cast numeric IDs into float, use integer instead
target_type = int if field_name.endswith("_id") else target_type
field_value = field_value.replace(",", "")

if target_type_name != "string" and field_value == "":
# do not cast empty strings, return None instead to be properly casted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def test_bad_field_type_converting(field_type, expected, caplog, capsys):
# specific cases
("string", "some_field", "test", None, "test"),
(["null", "number"], "some_field", "123.456", None, 123.456),
(["null", "number"], "some_field", "123,123.456", None, 123123.456),
(["null", "number"], "user_id", "123", None, 123),
(["null", "string"], "some_field", "123", None, "123"),
# when string has empty field_value (empty string)
Expand Down
Loading