Ivica Taseski
03/28/2022, 6:41 PMdef read_records(self, sync_mode: SyncMode, cursor_field: List[str] = None, stream_slice: Mapping[str, Any] = None,
stream_state: Mapping[str, Any] = None) -> Iterable[Mapping[str, Any]]:
cursor_name = cursor_field[-1]
stream_state["cursor_key"] = cursor_name
return super().read_records(sync_mode, cursor_field, stream_slice, stream_state = stream_state)
After this I will be able to access the cursor in the parse_response() and get_updated_state() methods in order to do the necessary filtering on the records.
Is there a better approach to achieve this or is this the only way?Octavia Squidington III
03/28/2022, 8:32 PMMarcos Marx (Airbyte)
03/29/2022, 8:21 PMIvica Taseski
03/29/2022, 8:23 PMIvica Taseski
03/29/2022, 8:24 PM