mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 23:00:00 +00:00
Airbyte loaders: Fix last_state getter (#9314)
This PR fixes the Airbyte loaders when doing incremental syncs. The notebooks are calling out to access `loader.last_state` to get the current state of incremental syncs, but this didn't work due to a refactoring of how the loaders are structured internally in the original PR. This PR fixes the issue by adding a `last_state` property that forwards the state correctly from the CDK adapter. --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
parent
0f9f213833
commit
09aa1eac03
@ -60,6 +60,10 @@ class AirbyteCDKLoader(BaseLoader):
|
||||
stream_name=self._stream_name, state=self._state
|
||||
)
|
||||
|
||||
@property
|
||||
def last_state(self) -> Any:
|
||||
return self._integration.last_state
|
||||
|
||||
|
||||
class AirbyteHubspotLoader(AirbyteCDKLoader):
|
||||
"""Load from `Hubspot` using an `Airbyte` source connector."""
|
||||
|
Loading…
Reference in New Issue
Block a user