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
description: If true, the partition router and incremental request options will be ignored when paginating requests. Request options set directly on the requester will not be ignored.
3712
3717
type: boolean
@@ -3730,6 +3735,36 @@ definitions:
3730
3735
$parameters:
3731
3736
type: object
3732
3737
additionalProperties: true
3738
+
PaginationReset:
3739
+
title: Pagination Reset
3740
+
description: Describes what triggers pagination reset and how to handle it. If SPLIT_USING_CURSOR, the connector developer is accountable for ensuring that the records are returned in ascending order.
3741
+
type: object
3742
+
required:
3743
+
- type
3744
+
- action
3745
+
properties:
3746
+
type:
3747
+
type: string
3748
+
enum: [ PaginationReset ]
3749
+
action:
3750
+
type: string
3751
+
enum:
3752
+
- SPLIT_USING_CURSOR
3753
+
- RESET
3754
+
limits:
3755
+
"$ref": "#/definitions/PaginationResetLimits"
3756
+
PaginationResetLimits:
3757
+
title: Pagination Reset Limits
3758
+
description: Describes the limits that trigger pagination reset
3759
+
type: object
3760
+
required:
3761
+
- type
3762
+
properties:
3763
+
type:
3764
+
type: string
3765
+
enum: [ PaginationResetLimits ]
3766
+
number_of_records:
3767
+
type: integer
3733
3768
GzipDecoder:
3734
3769
title: gzip
3735
3770
description: Select 'gzip' for response data that is compressed with gzip. Requires specifying an inner data type/decoder to parse the decompressed data.
self._cursor_factory=cursor_factory# self._cursor_factory is flagged as private but is used in model_to_component_factory to ease pagination reset instantiation
155
155
self._partition_router=partition_router
156
156
157
157
# The dict is ordered to ensure that once the maximum number of partitions is reached,
description="If true, the partition router and incremental request options will be ignored when paginating requests. Request options set directly on the requester will not be ignored.",
cursor_for_pagination_tracking=cursor._cursor_factory.create( # type: ignore # if this becomes a problem, we would need to extract the cursor_factory instantiation logic and make it accessible here
3366
+
{}, datetime.timedelta(0)
3367
+
)
3368
+
elifnotisinstance(cursor, FinalStateCursor):
3369
+
LOGGER.warning(
3370
+
"Unknown cursor for PaginationTracker. Pagination resets might not work properly"
internal_message=f"There were {self._number_of_attempt_with_same_slice} attempts with the same slice already while the max allowed is {self._allowed_number_of_attempt_with_same_slice}",
0 commit comments