christoph
03/11/2022, 8:19 AM"results": [
{
"last_updated": {
"value": "2022-03-01 00:00:10",
"display_value": "2022-03-01 00:00:10"
},
"name": {
"value": "John Doe",
"display_value": "John Doe"
}
},
{
.. next record
}
]
aaronsteers
03/11/2022, 5:24 PMpost_process()
method, you can say record["last_updated"] = record.pop("last_updated")["value"]
or similar, which will replace the nested representation with a simple top-level one.
• Then replication_key
can just be "last_updated"
.
• And in your schema
declaration, you just want to remember to declare the schema for "last_updated"
as a single DateTime, rather than as object
with two nested properties.
Does this help?aaronsteers
03/11/2022, 5:25 PMpost_process()
should give you the shape of data that is easier to work with.christoph
03/11/2022, 10:02 PMIn yourAh. Right! Thanks. That was the missing piece of the puzzle! It's the one method from the cookiecutter template that I've always deleted straight away, hence it wasn't on my mind when looking for a possible solution 😂 Thanks for the input @aaronsteers I'll give that a go shortly.methodpost_process()
aaronsteers
03/11/2022, 10:37 PM