mark_poole
06/22/2021, 10:02 PMmark_poole
06/22/2021, 10:06 PMaaronsteers
06/23/2021, 12:21 AMPRIMARY KEY ("")
which is probably driven by the key properties being set to a list containing a one-item empty string. It should be either an empty set or a set/list of string key names.aaronsteers
06/23/2021, 12:25 AMmark_poole
06/23/2021, 12:25 AMmark_poole
06/23/2021, 12:26 AMmark_poole
06/23/2021, 12:26 AMtap-twilio | time=2021-06-23 00:23:41 name=singer level=INFO message=START Syncing: usage_records
tap-twilio | time=2021-06-23 00:23:41 name=singer level=CRITICAL message=local variable 'parent_id_field' referenced before assignment
tap-twilio | Traceback (most recent call last):
tap-twilio | File "/home/meltano/meltano/twilio-qa/.meltano/extractors/tap-twilio/venv/bin/tap-twilio", line 8, in <module>
tap-twilio | sys.exit(main())
tap-twilio | File "/home/meltano/meltano/twilio-qa/.meltano/extractors/tap-twilio/venv/lib/python3.7/site-packages/singer/utils.py", line 229, in wrapped
tap-twilio | return fnc(*args, **kwargs)
tap-twilio | File "/home/meltano/meltano/twilio-qa/.meltano/extractors/tap-twilio/venv/lib/python3.7/site-packages/tap_twilio/__init__.py", line 48, in main
tap-twilio | state=state)
tap-twilio | File "/home/meltano/meltano/twilio-qa/.meltano/extractors/tap-twilio/venv/lib/python3.7/site-packages/tap_twilio/sync.py", line 515, in sync
tap-twilio | date_window_days=int(config.get('date_window_days', '30')))
tap-twilio | File "/home/meltano/meltano/twilio-qa/.meltano/extractors/tap-twilio/venv/lib/python3.7/site-packages/tap_twilio/sync.py", line 378, in sync_endpoint
tap-twilio | account_sid=account_sid)
tap-twilio | File "/home/meltano/meltano/twilio-qa/.meltano/extractors/tap-twilio/venv/lib/python3.7/site-packages/tap_twilio/sync.py", line 338, in sync_endpoint
tap-twilio | parent_id = record.get(parent_id_field)
tap-twilio | UnboundLocalError: local variable 'parent_id_field' referenced before assignment
mark_poole
06/23/2021, 12:27 AMaaronsteers
06/23/2021, 12:28 AMmark_poole
06/23/2021, 12:29 AMmark_poole
06/23/2021, 12:35 AMaaronsteers
06/23/2021, 12:37 AMpeter_kosztolanyi
06/28/2021, 10:31 AMUsageRecords
and UsageTriggers
added by this PR, which as you said doesn’t define PK for the users
stream and we should address.
I have very limited knowledge about tap-twilio but maybe you can try one of these:
1. Define a PK for users stream and send PR
2. Disable the users stream in the selection
3. target_postgres has the option to disable PK check: primary_key_required: False
, but I would not recommend disabling it because most probably that would cause more issues than it solves.