airbyte-cdk 6.48.13__py3-none-any.whl → 6.48.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1484,6 +1484,7 @@ class ModelToComponentFactory:
1484
1484
  stream_state_migrations=stream_state_migrations,
1485
1485
  )
1486
1486
  )
1487
+
1487
1488
  stream_state = self.apply_stream_state_migrations(stream_state_migrations, stream_state)
1488
1489
  # Per-partition state doesn't make sense for GroupingPartitionRouter, so force the global state
1489
1490
  use_global_cursor = isinstance(
@@ -1993,14 +1994,19 @@ class ModelToComponentFactory:
1993
1994
  ) -> Optional[StreamSlicer]:
1994
1995
  if model.incremental_sync and stream_slicer:
1995
1996
  if model.retriever.type == "AsyncRetriever":
1997
+ stream_name = model.name or ""
1998
+ stream_namespace = None
1999
+ stream_state = self._connector_state_manager.get_stream_state(
2000
+ stream_name, stream_namespace
2001
+ )
1996
2002
  return self.create_concurrent_cursor_from_perpartition_cursor( # type: ignore # This is a known issue that we are creating and returning a ConcurrentCursor which does not technically implement the (low-code) StreamSlicer. However, (low-code) StreamSlicer and ConcurrentCursor both implement StreamSlicer.stream_slices() which is the primary method needed for checkpointing
1997
2003
  state_manager=self._connector_state_manager,
1998
2004
  model_type=DatetimeBasedCursorModel,
1999
2005
  component_definition=model.incremental_sync.__dict__,
2000
- stream_name=model.name or "",
2001
- stream_namespace=None,
2006
+ stream_name=stream_name,
2007
+ stream_namespace=stream_namespace,
2002
2008
  config=config or {},
2003
- stream_state={},
2009
+ stream_state=stream_state,
2004
2010
  partition_router=stream_slicer,
2005
2011
  )
2006
2012
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-cdk
3
- Version: 6.48.13
3
+ Version: 6.48.14
4
4
  Summary: A framework for writing Airbyte Connectors.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
@@ -140,7 +140,7 @@ airbyte_cdk/sources/declarative/parsers/custom_exceptions.py,sha256=wnRUP0Xeru9R
140
140
  airbyte_cdk/sources/declarative/parsers/manifest_component_transformer.py,sha256=2UdpCz3yi7ISZTyqkQXSSy3dMxeyOWqV7OlAS5b9GVg,11568
141
141
  airbyte_cdk/sources/declarative/parsers/manifest_normalizer.py,sha256=laBy7ebjA-PiNwc-50U4FHvMqS_mmHvnabxgFs4CjGw,17069
142
142
  airbyte_cdk/sources/declarative/parsers/manifest_reference_resolver.py,sha256=pJmg78vqE5VfUrF_KJnWjucQ4k9IWFULeAxHCowrHXE,6806
143
- airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py,sha256=Ai-3RfSoBa3oNc34KNlUvp7KbbQuuqhtGwGOxPf8fMc,167671
143
+ airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py,sha256=kNUADnpJMUauIV7HxzkBHmtneqca9Kh6eenIORP9D-U,167923
144
144
  airbyte_cdk/sources/declarative/partition_routers/__init__.py,sha256=TBC9AkGaUqHm2IKHMPN6punBIcY5tWGULowcLoAVkfw,1109
145
145
  airbyte_cdk/sources/declarative/partition_routers/async_job_partition_router.py,sha256=VelO7zKqKtzMJ35jyFeg0ypJLQC0plqqIBNXoBW1G2E,3001
146
146
  airbyte_cdk/sources/declarative/partition_routers/cartesian_product_stream_slicer.py,sha256=c5cuVFM6NFkuQqG8Z5IwkBuwDrvXZN1CunUOM_L0ezg,6892
@@ -419,9 +419,9 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EDxgROHDbfG-QKQb59m7h_7crN1tRiawdf5uU7G
419
419
  airbyte_cdk/utils/spec_schema_transformations.py,sha256=-5HTuNsnDBAhj-oLeQXwpTGA0HdcjFOf2zTEMUTTg_Y,816
420
420
  airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
421
421
  airbyte_cdk/utils/traced_exception.py,sha256=C8uIBuCL_E4WnBAOPSxBicD06JAldoN9fGsQDp463OY,6292
422
- airbyte_cdk-6.48.13.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
423
- airbyte_cdk-6.48.13.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
424
- airbyte_cdk-6.48.13.dist-info/METADATA,sha256=GdzqhkyDm8Slz4AKF7xh6l6TPhz8xKHsFG8qrb_AtA4,6344
425
- airbyte_cdk-6.48.13.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
426
- airbyte_cdk-6.48.13.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
427
- airbyte_cdk-6.48.13.dist-info/RECORD,,
422
+ airbyte_cdk-6.48.14.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
423
+ airbyte_cdk-6.48.14.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
424
+ airbyte_cdk-6.48.14.dist-info/METADATA,sha256=x8gIZRmzk_8_46jPM3-pIfpnPgk3_4jRWY_ED5MH7s8,6344
425
+ airbyte_cdk-6.48.14.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
426
+ airbyte_cdk-6.48.14.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
427
+ airbyte_cdk-6.48.14.dist-info/RECORD,,