trinath
11/16/2022, 8:50 AMedgar_ramirez_mondragon
11/16/2022, 4:18 PMattributes.updated
is a nested field. How did you declare the replication key for your stream?trinath
11/16/2022, 4:31 PMedgar_ramirez_mondragon
11/16/2022, 5:04 PMdef post_process(row, context):
row["updated"] = row["attributes"].pop("updated")
return row
and updating the schema:
schema = PropertiesList(
...
Property("updated", th.DateTimeType)
)
trinath
11/16/2022, 5:24 PMedgar_ramirez_mondragon
11/16/2022, 5:33 PMstart_value
if there’s no state.trinath
11/16/2022, 5:35 PMedgar_ramirez_mondragon
11/16/2022, 5:36 PMProperty("updated", th.StringType)
in the schema at the same level as id
trinath
11/16/2022, 5:42 PMedgar_ramirez_mondragon
11/16/2022, 5:48 PMpost_process
is missing the self argument:
def post_process(self, row, context):
trinath
11/16/2022, 5:50 PMtrinath
11/16/2022, 5:50 PMedgar_ramirez_mondragon
11/16/2022, 5:51 PMedgar_ramirez_mondragon
11/16/2022, 5:51 PMprint(…, file=sys.stderr)
trinath
11/16/2022, 5:52 PMedgar_ramirez_mondragon
11/16/2022, 5:52 PMtrinath
11/16/2022, 5:54 PMedgar_ramirez_mondragon
11/16/2022, 6:01 PMRE: Question: Does this get_starting_timestamp ensure that on my first run of the tap it uses the start_date value i set in the yml file and then automatically store when the last run was, so that it ensures the future runs use the last run timestamp- automatically ?Yes 🙂