Skip to content

Commit d4d52b9

Browse files
committed
Add comments for state format
1 parent c827d82 commit d4d52b9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

airbyte_cdk/sources/declarative/incremental/concurrent_partition_cursor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class ConcurrentPerPartitionCursor(Cursor):
5151
5252
- **Global Cursor Fallback**
5353
New partitions use global state as the initial state to progress the state for deleted or new partitions. The history data added after the initial sync will be missing.
54+
55+
CurrentPerPartitionCursor expects the state of the ConcurrentCursor to follow the format {cursor_field: cursor_value}.
5456
"""
5557

5658
DEFAULT_MAX_PARTITIONS_NUMBER = 10000

airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def create_concurrent_cursor_from_datetime_based_cursor(
937937
connector_state_converter = CustomFormatConcurrentStreamStateConverter(
938938
datetime_format=datetime_format,
939939
input_datetime_formats=datetime_based_cursor_model.cursor_datetime_formats,
940-
is_sequential_state=True,
940+
is_sequential_state=True, # ConcurrentPerPartitionCursor only works with sequential state
941941
cursor_granularity=cursor_granularity,
942942
)
943943

0 commit comments

Comments
 (0)