David Anderson
05/27/2023, 5:22 PMtime data '1621468800.0' does not match format '%Y-%m-%d %H:%M:%S.%f+00:00'
the CDK seems to break when the date types dont match between the cursor field and the query param.Maxime Carbonneau-Leclerc (Airbyte)
05/29/2023, 4:36 PM%s
. However, I see there is an issue with our code where everything after the .
would be dropped. If you need this part, let us know and we’ll prioritize the fixDavid Anderson
05/30/2023, 1:00 AM{{ timestamp(config['start_dt']) }}
.
the issue is that the CDK is expecting a different format. the cursor itself is formatted as %Y-%m-%dT%H:%M:%S.%fZ
. if i leave the format field blank for the start datetime section, per the docs it assumes the format should be the same as the cursor field. but, im unable to set the format as %0.2f
very likely user error on my part here.. perhaps im getting the formatting for the query param portion wrong?Maxime Carbonneau-Leclerc (Airbyte)
05/30/2023, 12:38 PMconfig['start_dt']
? Why do you parse it as a Unix timestamp? Given you require a consistent format for config['start_dt']
, I would put this format in the field Format
under Start Datetime
. If you still need to cast this as a int for whatever reason, %s
should do the trick considering everything more granular than a second will be ignoredDavid Anderson
05/30/2023, 2:12 PM%Y-%m-%dT%H:%M:%S.%fZ
. ive set the format for the user-defined config['start_dt']
to be the same.
• the query parameter for datetime filtering requires unix timestamps in milliseconds formatted as integers. the api endpoint im working with is here if the docs are helpful at all.
• so, i need to convert the value passed into the query parameter from the datetime string into an integer, both for the initial sync when using the user-supplied config['start_dt']
value as well as for subsequent syncs when using the bookmark for the stream.
i think im close with the following setup, but im getting an ERROR: unconverted data remains
message. is this related to your note re: not handling inputs more granular than seconds?David Anderson
05/30/2023, 2:14 PM%f
isn't working .. its just grabbing the first six digits.David Anderson
05/30/2023, 2:15 PMMaxime Carbonneau-Leclerc (Airbyte)
05/30/2023, 2:48 PMMaxime Carbonneau-Leclerc (Airbyte)
05/30/2023, 2:48 PMDavid Anderson
05/30/2023, 3:07 PMTim Faber
06/19/2023, 7:43 PM%Y-%m-%d
while the api response returns %Y-%m-%dT%H:%M:%S.%f%z
. I was assuming that the formatting of the start/ end datetime query params would be leading but the format of the cursor field determines the test params. This breaks any second sync with the same errors as mentioned here.Javier Román Morales
07/24/2023, 11:37 AM%Y-%m-%dT%H:%M:%S.%f%z
but the parameter in the request should look like %Y%m%d
so it would be ver useful to be able to define the format of the dates in the request.Maxime Carbonneau-Leclerc (Airbyte)
07/24/2023, 12:20 PM