abhishek_ajmera
11/30/2022, 5:56 AMCRITICAL datetime must be pegged at UTC tzone
error? Got this couple of times, doing a full refresh seems to be solution but I can’t do a full refresh for large tables every time this happens.
```
2022-11-30T055412.805948Z [info ] CRITICAL datetime must be pegged at UTC tzoneinfo cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.806970Z [info ] Traceback (most recent call last): cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.807265Z [info ] File "/home/ubuntu/dynamodb-to-bigquery/.meltano/extractors/tap-dynamodb/venv/bin/tap-dynamodb", line 8, in <module> cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.807490Z [info ] sys.exit(main()) cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.807692Z [info ] File "/home/ubuntu/dynamodb-to-bigquery/.meltano/extractors/tap-dynamodb/venv/lib/python3.8/site-packages/singer/utils.py", line 229, in wrapped cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.807887Z [info ] return fnc(*args, **kwargs) cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.808053Z [info ] File "/home/ubuntu/dynamodb-to-bigquery/.meltano/extractors/tap-dynamodb/venv/lib/python3.8/site-packages/tap_dynamodb/__init__.py", line 105, in main cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.808206Z [info ] do_sync(config, args.catalog.to_dict(), args.state) cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.808358Z [info ] File "/home/ubuntu/dynamodb-to-bigquery/.meltano/extractors/tap-dynamodb/venv/lib/python3.8/site-packages/tap_dynamodb/__init__.py", line 56, in do_sync cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.808540Z [info ] counts[stream_name] = sync_stream(config, state, stream) cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.808690Z [info ] File "/home/ubuntu/dynamodb-to-bigquery/.meltano/extractors/tap-dynamodb/venv/lib/python3.8/site-packages/tap_dynamodb/sync.py", line 62, in sync_stream cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.808837Z [info ] rows_saved += log_based.sync(config, state, stream) cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.808996Z [info ] File "/home/ubuntu/dynamodb-to-bigquery/.meltano/extractors/tap-dynamodb/venv/lib/python3.8/site-packages/backoff/_sync.py", line 94, in retry cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.809261Z [info ] ret = target(*args, **kwargs) cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.809526Z [info ] File "/home/ubuntu/dynamodb-to-bigquery/.meltano/extractors/tap-dynamodb/venv/lib/python3.8/site-packages/tap_dynamodb/sync_strategies/log_based.py", line 208, in sync cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-46a8-4227-a738-03a90509d9d1 state_id=ddb stdio=stderr
2022-11-30T055412.809782Z [info ] rows_synced += sync_shard(shard, seq_number_bookmarks, cmd_type=extractor name=tap-dynamodb run_id=3224b6eb-…Sven Balnojan
11/30/2022, 7:06 AMaaronsteers
11/30/2022, 4:36 PMtap-wootric
seems to have been pretty simple. Probably this requires a new issue open on tap-dynamodb
.abhishek_ajmera
11/30/2022, 8:51 PMaaronsteers
11/30/2022, 9:37 PMaaronsteers
11/30/2022, 9:38 PMabhishek_ajmera
12/01/2022, 2:55 AMabhishek_ajmera
12/01/2022, 11:43 AMaaronsteers
12/01/2022, 4:20 PM_SDC_DELETED_AT
may be a unique codepath for the tap - and may be the source of the timezone casting bug.abhishek_ajmera
12/02/2022, 10:37 AMabhishek_ajmera
12/02/2022, 10:48 AMsinger.utils.strftime
only for deletion;
And that function is throwing the error when the DynamoDB record’s ApproximateCreationDateTime
(UNIX epoch time) has a mismatching .utcoffset()
But I just know the cause now, have no idea what to do to correct it. 🥲ken_payne
12/02/2022, 11:55 AMtap-dynamodb
repo if you haven't already, which alerts the maintainers and the wider community of users of that tap to the bug. After that you can either fork the tap, fix the bug and rasie a Pull Request to contribute the fix, or you can try another variant of tap-dynamodb
which will hopefully not contain the same bug.
If you go down the route of submitting a PR, you can override the pip URL of your currently install tap-dynamodb
to point at your fork in git, temporarily whilst your PR is reviewed upstream.
If you go down the variant route, there is a list of available variants on the hub page (a good selection for DynamoDB 🚀). We have docs on adding or switching variants here.