You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnself.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
returnself._create_component_from_model(model=model.incremental_sync, config=config) # type: ignore[no-any-return] # Will be created Cursor as stream_slicer_model is model.incremental_sync
# FIXME there is a discrepancy where this logic is applied on the create_*_cursor methods for
2192
-
# ConcurrentCursor but it is applied outside of create_concurrent_cursor_from_perpartition_cursor
2193
-
ifmodel.state_migrations:
2194
-
state_transformations= [
2195
-
self._create_component_from_model(
2196
-
state_migration, config, declarative_stream=model
2197
-
)
2198
-
forstate_migrationinmodel.state_migrations
2199
-
]
2200
-
else:
2201
-
state_transformations= []
2191
+
ifmodel.state_migrations:
2192
+
state_transformations= [
2193
+
self._create_component_from_model(
2194
+
state_migration, config, declarative_stream=model
2195
+
)
2196
+
forstate_migrationinmodel.state_migrations
2197
+
]
2198
+
else:
2199
+
state_transformations= []
2202
2200
2201
+
ifmodel.incremental_syncandstream_slicer:
2203
2202
returnself.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
returnself.create_concurrent_cursor_from_datetime_based_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
0 commit comments