Jesse Johnson
10/29/2024, 5:30 PMcompanies.properties.redacted_custom_prop_name
. I then run meltano select tap-hubspot companies redacted_custom_prop_name
, it seems to add it to the meltano.yml. However, if i then invoke tap-hubspot, i get this error:
❯ meltano run tap-hubspot --refresh-catalog target-jsonl
2024-10-29T17:28:34.698950Z [info ] Environment 'dev' is active
2024-10-29T17:28:38.535979Z [warning ] Property `redacted_custom_prop_name` was not found in the schema of stream `companies`
Including my redacted yml file in the threadJesse Johnson
10/29/2024, 5:31 PMversion: 1
default_environment: dev
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-hubspot
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-hubspot.git>
config:
flattening_enabled: true
flattening_max_depth: 2
stream_maps:
'*':
__alias__: __stream_name__ + '_redacted'
companies:
__filter__: properties.redacted_custom_prop_1 is not None or properties.redacted_custom_prop_2
is not None or properties.redacted_custom_prop_3 is not None or properties.redacted_custom_prop_4
is not None or properties.redacted_custom_prop_5 is not None or properties.redacted_custom_prop_6
is not None or properties.redacted_custom_prop_7 is not None or properties.redacted_custom_prop_8
is not None or properties.redacted_custom_prop_9 is not None or properties.redacted_custom_prop_10
is not None or properties.redacted_custom_prop_11 is not None or
properties.redacted_custom_prop_12 is not None or properties.redacted_custom_prop_13
is not None or properties.redacted_custom_prop_14 is not
None or properties.redacted_custom_prop_15 is not None
# metadata:
# companies:
# replication-method: FULL_TABLE
select:
- companies.redacted_custom_prop_name
loaders:
- name: target-jsonl
variant: andyh1203
pip_url: target-jsonl
Jesse Johnson
10/29/2024, 7:02 PMmeltano invoke --dump catalog tap-hubspot
i see it in the catalog as:
.streams[2].schema.properties.properties.properties.redacted_custom_prop_name
Jesse Johnson
10/29/2024, 7:04 PMJesse Johnson
10/29/2024, 7:13 PMJesse Johnson
10/29/2024, 7:20 PMmeltano select tap-hubspot --list
but not in the jsonl outputJesse Johnson
10/29/2024, 7:20 PMvisch
10/29/2024, 7:25 PMJesse Johnson
10/29/2024, 7:26 PMmeltano run --refresh-catalog tap-hubspot target-jsonl
prints this to the output jsonl file:
{"id": "5534339884", "hs_lastmodifieddate": "2024-10-22T11:34:09.657Z"}
{"id": "5535570836", "hs_lastmodifieddate": "2024-10-04T15:08:38.041Z"}
{"id": "5536384277", "hs_lastmodifieddate": "2024-10-04T15:08:38.036Z"}
{"id": "5536505886", "hs_lastmodifieddate": "2024-10-04T15:08:37.932Z"}
{"id": "5538551911", "hs_lastmodifieddate": "2024-10-29T13:44:06.500Z"}
{"id": "5543298638", "hs_lastmodifieddate": "2024-10-25T13:49:10.450Z"}
Jesse Johnson
10/29/2024, 7:27 PMJesse Johnson
10/29/2024, 7:27 PMvisch
10/29/2024, 7:48 PMmeltano invoke tap-hubspot > out
does that output the data you want?Jesse Johnson
10/30/2024, 2:11 PM{"type": "STATE", "value": {}}
{"type": "SCHEMA", "stream": "companies", "schema": {"properties": {"id": {"type": ["string", "null"]}, "hs_lastmodifieddate": {"format": "date-time", "type": ["string", "null"]}}, "type": "object"}, "key_properties": ["id"], "bookmark_properties": ["hs_lastmodifieddate"]}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted1", "hs_lastmodifieddate": "2024-10-27T10:31:22.625Z"}, "time_extracted": "2024-10-30 14:09:57.830256+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted2", "hs_lastmodifieddate": "2024-10-29T13:43:34.347Z"}, "time_extracted": "2024-10-30 14:09:57.830460+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted3", "hs_lastmodifieddate": "2024-10-30T01:14:29.665Z"}, "time_extracted": "2024-10-30 14:09:57.830556+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted4", "hs_lastmodifieddate": "2024-10-22T13:51:22.693Z"}, "time_extracted": "2024-10-30 14:09:57.830628+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted5", "hs_lastmodifieddate": "2024-10-21T21:14:20.458Z"}, "time_extracted": "2024-10-30 14:09:57.830690+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted6", "hs_lastmodifieddate": "2024-10-22T13:51:22.739Z"}, "time_extracted": "2024-10-30 14:09:57.830753+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted7", "hs_lastmodifieddate": "2024-10-04T04:57:42.782Z"}, "time_extracted": "2024-10-30 14:09:57.830805+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted8", "hs_lastmodifieddate": "2024-10-26T01:04:27.656Z"}, "time_extracted": "2024-10-30 14:09:57.830870+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted9", "hs_lastmodifieddate": "2024-10-04T15:08:37.126Z"}, "time_extracted": "2024-10-30 14:09:57.830921+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted10", "hs_lastmodifieddate": "2024-10-27T10:31:51.096Z"}, "time_extracted": "2024-10-30 14:09:57.830967+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted11", "hs_lastmodifieddate": "2024-10-30T12:31:43.097Z"}, "time_extracted": "2024-10-30 14:09:57.831008+00:00"}
{"type": "RECORD", "stream": "companies", "record": {"id": "redacted12", "hs_lastmodifieddate": "2024-10-27T10:31:50.508Z"}, "time_extracted": "2024-10-30 14:09:57.831052+00:00"}
Jesse Johnson
10/30/2024, 2:21 PMvisch
10/30/2024, 4:11 PMJesse Johnson
10/30/2024, 5:44 PMJesse Johnson
10/30/2024, 5:45 PMJesse Johnson
10/30/2024, 5:50 PM