-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flattening not working - string indices must be integers
& TypeError: can't compare offset-naive and offset-aware datetimes
#19
Comments
string indices must be integers
This PR fixes this issue reported in #19 but it also needs to be used with meltano/sdk#2243.
Hi there, I ran into another issue using this tap: > meltano run tap-klaviyo target-postgres 18:06:55
2024-08-20T16:06:59.053012Z [info ] Environment 'dev' is active
2024-08-20T16:06:59.177303Z [info ] Installing extractor 'tap-klaviyo'
2024-08-20T16:07:06.272142Z [info ] Installed extractor 'tap-klaviyo'
2024-08-20T16:07:06.272532Z [info ] Installed 1/2 plugins
2024-08-20T16:07:06.272589Z [info ] Skipped installing 1/2 plugins
2024-08-20T16:07:08.731408Z [info ] 2024-08-20 18:07:08,731 | INFO | tap-klaviyo | Added 'listperson' as child stream to 'lists' cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.731877Z [info ] 2024-08-20 18:07:08,731 | INFO | tap-klaviyo | Skipping deselected stream 'campaigns'. cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.731970Z [info ] 2024-08-20 18:07:08,731 | INFO | tap-klaviyo | Skipping deselected stream 'events'. cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732046Z [info ] 2024-08-20 18:07:08,731 | INFO | tap-klaviyo | Skipping deselected stream 'flows'. cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732107Z [info ] 2024-08-20 18:07:08,731 | INFO | tap-klaviyo.lists | Beginning incremental sync of 'lists'... cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732167Z [info ] 2024-08-20 18:07:08,731 | INFO | tap-klaviyo.lists | Tap has custom mapper. Using 1 provided map(s). cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732282Z [info ] 2024-08-20 18:07:08,731 | INFO | singer_sdk.metrics | METRIC: {"type": "timer", "metric": "sync_duration", "value": 1.1682510375976562e-05, "tags": {"stream": "lists", "context": {}, "status": "failed"}} cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732394Z [info ] 2024-08-20 18:07:08,731 | INFO | singer_sdk.metrics | METRIC: {"type": "counter", "metric": "record_count", "value": 0, "tags": {"stream": "lists", "context": {}}} cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732497Z [info ] 2024-08-20 18:07:08,731 | ERROR | tap-klaviyo.lists | An unhandled error occurred while syncing 'lists' cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732555Z [info ] Traceback (most recent call last): cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732612Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/streams/core.py", line 1203, in sync cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732667Z [info ] for _ in self._sync_records(context=context): cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732721Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/streams/core.py", line 1092, in _sync_records cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732833Z [info ] self._write_starting_replication_value(current_context) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.732974Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/streams/core.py", line 416, in _write_starting_replication_value cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733072Z [info ] value = self.compare_start_date(value, start_date_value) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733131Z [info ] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733185Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/streams/core.py", line 390, in compare_start_date cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733238Z [info ] return max(value, start_date_value, key=datetime_fromisoformat) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733288Z [info ] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733337Z [info ] TypeError: can't compare offset-naive and offset-aware datetimes cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733385Z [info ] Traceback (most recent call last): cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733435Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/bin/tap-klaviyo", line 8, in <module> cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733484Z [info ] sys.exit(TapKlaviyo.cli()) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733531Z [info ] ^^^^^^^^^^^^^^^^ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733579Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733719Z [info ] return self.main(*args, **kwargs) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733830Z [info ] ^^^^^^^^^^^^^^^^^^^^^^^^^^ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733892Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/click/core.py", line 1078, in main cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.733962Z [info ] rv = self.invoke(ctx) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734017Z [info ] ^^^^^^^^^^^^^^^^ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734069Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/plugin_base.py", line 80, in invoke cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734122Z [info ] return super().invoke(ctx) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734171Z [info ] ^^^^^^^^^^^^^^^^^^^ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734222Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734270Z [info ] return ctx.invoke(self.callback, **ctx.params) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734321Z [info ] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734402Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734456Z [info ] return __callback(*args, **kwargs) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734509Z [info ] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734568Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/tap_base.py", line 507, in invoke cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734618Z [info ] tap.sync_all() cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734666Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/tap_base.py", line 466, in sync_all cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734716Z [info ] stream.sync() cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734764Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/streams/core.py", line 1203, in sync cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734819Z [info ] for _ in self._sync_records(context=context): cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734866Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/streams/core.py", line 1092, in _sync_records cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734915Z [info ] self._write_starting_replication_value(current_context) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.734965Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/streams/core.py", line 416, in _write_starting_replication_value cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.735013Z [info ] value = self.compare_start_date(value, start_date_value) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.735061Z [info ] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.735108Z [info ] File "REDACTED/meltano/.meltano/extractors/tap-klaviyo/venv/lib/python3.11/site-packages/singer_sdk/streams/core.py", line 390, in compare_start_date cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.735166Z [info ] return max(value, start_date_value, key=datetime_fromisoformat) cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.735257Z [info ] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.735317Z [info ] TypeError: can't compare offset-naive and offset-aware datetimes cmd_type=elb consumer=False job_name=dev:tap-klaviyo-to-target-postgres name=tap-klaviyo producer=True run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=tap-klaviyo
2024-08-20T16:07:08.779700Z [info ] time=2024-08-20 18:07:08 name=target_postgres level=INFO message=Table '"lists"' exists cmd_type=elb consumer=True job_name=dev:tap-klaviyo-to-target-postgres name=target-postgres producer=False run_id=[2e07b7cc-5956-4f32-bbe2-f2b3a7b0d1ad] stdio=stderr string_id=target-postgres
2024-08-20T16:07:08.801133Z [info ] Incremental state has been updated at 2024-08-20 16:07:08.801113+00:00.
2024-08-20T16:07:08.815490Z [error ] Extractor failed
2024-08-20T16:07:08.815646Z [error ] Block run completed. block_type=ExtractLoadBlocks err=RunnerError('Extractor failed') exit_codes={<PluginType.EXTRACTORS: 'extractors'>: 1} set_number=0 success=False
Need help fixing this problem? Visit http://melta.no/ for troubleshooting steps, or to
join our friendly Slack community.
Run invocation could not be completed as block failed: Extractor failed Seems that there is a mismatch in the date types returned by this tap? |
string indices must be integers
string indices must be integers
& TypeError: can't compare offset-naive and offset-aware datetimes
I think the issue is caused by the SDK parsing these two values into a naive and an aware
@fekle as a workaround, could you try changing the value of the |
For this, do you know which is the offending stream @fekle? |
Hey, yes that worked! Changing |
In a future version of singer-sdk that will be the case: |
Ah great, thanks for the info |
I just tried flattening again now, and it seems to work :-) - At least for the So I think we can now finally close this issue? :-D |
Yup! |
Thanks for reporting @fekle! |
Hi there,
as promised on Slack, I'm opening an issue here regarding the issue with flattening.
When using the tap without flattening enabled, everything works great, but most of the properties are buried in a json field in the resulting database table, as expected. In order to improve performance etc when using the data, flattening while extracting would be great.
The documentation for this tap mentions the options
flattening_enabled
andflattening_max_depth
.I tried enabling flattening with
flattening_enabled
, and settingflattening_max_depth
to various values such as1
,3
,9
etc - but always get the same error as shown below.I dug into the errors a bit further, and the problem seems to be related to this tap's schema - specifically this: https://github.com/MeltanoLabs/tap-klaviyo/blob/d049862b4d8d3426481c6739f48ec98a06dda09c/tap_klaviyo/schemas/profiles.json#L175C19-L189.
When commenting out this part of the schmema (I set up the tap source locally), flattening works.
As I'm not familiar with the workings of the meltano SDK, I'm not sure on how to proceed here - but I'm sure someone with more experience should be able to find the issue :-)
This is the log output when invoking the tap with flattening enabled:
I'm using Postgres as the target, so i can use the tap without flattening and using jsonb selectors - so this is not a big deal, but I think it should either be fixed, or flattening removed from the documentation.
Thanks for the great tap!
The text was updated successfully, but these errors were encountered: