prakhar_srivastava
10/06/2023, 2:36 PMupdated_at
as replication key and this key is also present in the record as string.
when I try to ingest the stream using type-defined schema (in parquet), it fails. I saw a peculiar thing, the updated_at
key suddenly became datetime.datetime
when passed to target-s3 via context.
I want to ask, is there a timestamp conversion that takes place implicitly, in the taps?prakhar_srivastava
10/06/2023, 2:39 PMprakhar_srivastava
10/06/2023, 2:39 PMvisch
10/06/2023, 2:46 PMvisch
10/06/2023, 2:46 PMprakhar_srivastava
10/06/2023, 2:48 PMupdated_at
which is string but when the target processes it the same key becomes datetime.datetime
prakhar_srivastava
10/06/2023, 2:48 PMvisch
10/06/2023, 2:50 PMmeltano invoke tap-kustomer > out
go filter out
down to just one record maybe even one field if you're feeling up to it that causes the error when running cat out | meltano invoke target-s3
If you still can't get it share that output file and the out response you're getting 🙂prakhar_srivastava
10/06/2023, 2:50 PMprakhar_srivastava
10/06/2023, 3:01 PM-- stream output from tap-kustomer --
{"type": "STATE", "value": {}}
{"type": "SCHEMA", "stream": "conversations", "schema": {"properties": {"type": {"type": ["string", "null"]}, "id": {"type": ["string", "null"]}, "updated_at": {"format": "date-time", "type": ["string", "null"]}}, "type": ["object", "null"]}, "key_properties": ["id"], "bookmark_properties": ["updated_at"]}
{"type": "RECORD", "stream": "conversations", "record": {"type": "conversation", "id": "64c849056f6e881dd8474251", "updated_at": "2023-08-01T00:02:21.371Z"}, "time_extracted": "2023-10-06T14:58:45.180526+00:00"}
-- output from target-s3 --
{"type": "conversation", "id": "64c849056f6e881dd8474251", "updated_at": datetime.datetime(2023, 8, 1, 0, 2, 21, 371000, tzinfo=tzutc()), "_PROCESS_DATE": "2023-10-06T14:59:32.060194"}
prakhar_srivastava
10/06/2023, 3:02 PMupdated_at
is replication key for the streamvisch
10/06/2023, 3:04 PMvisch
10/06/2023, 3:04 PMprakhar_srivastava
10/06/2023, 3:04 PMprakhar_srivastava
10/06/2023, 3:04 PMprakhar_srivastava
10/06/2023, 3:05 PM- name: target-jsonl
variant: andyh1203
pip_url: target-jsonl
- name: target-s3
variant: crowemi
pip_url: git+<https://github.com/crowemi/target-s3.git>
config:
append_date_to_filename_grain: microsecond
format:
format_type: parquet
include_process_date: true
prefix: meltano/flat/2
visch
10/06/2023, 3:06 PMvisch
10/06/2023, 3:06 PMprakhar_srivastava
10/06/2023, 3:07 PMvisch
10/06/2023, 3:09 PMprakhar_srivastava
10/06/2023, 3:11 PMupdated_at
data type fails the file creation.visch
10/06/2023, 3:14 PMprakhar_srivastava
10/06/2023, 3:18 PMprakhar_srivastava
10/06/2023, 3:43 PMprakhar_srivastava
10/06/2023, 3:43 PMprakhar_srivastava
10/06/2023, 3:45 PMprakhar_srivastava
10/06/2023, 3:45 PMprakhar_srivastava
10/06/2023, 3:50 PMprakhar_srivastava
10/06/2023, 6:20 PM