niall_woodward
11/26/2021, 9:26 AMmeltano.yml
looks like:
config:
stream_maps:
events:
id: "md5(customer_id + edit_id + date + event)"
__key_properties__: ["id"]
and some log output:
tap-mytap | extractor | time=2021-11-26 09:22:42 name=root level=INFO message=Found stream map override for 'events' key properties: ['id']
tap-mytap | extractor | time=2021-11-26 09:22:42 name=tap-mytap level=INFO message=Beginning incremental sync of 'events'...
tap-mytap | extractor | time=2021-11-26 09:22:42 name=tap-mytap level=INFO message=Tap has custom mapper. Using 1 provided map(s).
tap-mytap (out) | extractor | {"type": "SCHEMA", "stream": "events", "schema": {"properties": {"stylist_id": {"type": ["string", "null"]}, "customer_id": {"type": ["string", "null"]}, "edit_id": {"type": ["string", "null"]}, "edit_title": {"type": ["string", "null"]}, "date": {"format": "date-time", "type": ["string", "null"]}, "event": {"type": ["string", "null"]}, "product_id": {"type": ["string", "null"]}, "external_id": {"type": ["string", "null"]}, "product_url": {"type": ["string", "null"]}, "customer_email": {"type": ["string", "null"]}, "customer_first_name": {"type": ["string", "null"]}, "customer_last_name": {"type": ["string", "null"]}, "customer_phone_number": {"type": ["string", "null"]}, "id": {"type": ["string", "null"]}}, "type": "object"}, "key_properties": [], "bookmark_properties": ["date"]}
ken_payne
11/26/2021, 11:59 AM__key_properties__
key is not being correctly parsed from YAML. Have you tried wrapping it in double quotes?niall_woodward
11/26/2021, 12:03 PMniall_woodward
11/26/2021, 12:05 PMkey_properties
attribute of the schema message should be being updated.ken_payne
11/26/2021, 12:31 PMtransformed_schema
🤔 Have scanned the SDK tests and can't find one that covers __key_properties__
either, so even more likely this is a bug 😅 Do you mind creating an issue? I'm not set up to easily work on the SDK yet, but @edgar_ramirez_mondragon should be on later today and has worked a lot on the SDK 👍edgar_ramirez_mondragon
11/26/2021, 4:47 PMedgar_ramirez_mondragon
11/26/2021, 4:57 PMken_payne
11/26/2021, 7:23 PMniall_woodward
11/26/2021, 7:44 PM