airbyte-cdk 6.48.14.post1.dev15054311822__py3-none-any.whl → 6.48.15__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.
- airbyte_cdk/sources/declarative/migrations/legacy_to_per_partition_state_migration.py +14 -13
- {airbyte_cdk-6.48.14.post1.dev15054311822.dist-info → airbyte_cdk-6.48.15.dist-info}/METADATA +1 -1
- {airbyte_cdk-6.48.14.post1.dev15054311822.dist-info → airbyte_cdk-6.48.15.dist-info}/RECORD +7 -7
- {airbyte_cdk-6.48.14.post1.dev15054311822.dist-info → airbyte_cdk-6.48.15.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.48.14.post1.dev15054311822.dist-info → airbyte_cdk-6.48.15.dist-info}/LICENSE_SHORT +0 -0
- {airbyte_cdk-6.48.14.post1.dev15054311822.dist-info → airbyte_cdk-6.48.15.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.48.14.post1.dev15054311822.dist-info → airbyte_cdk-6.48.15.dist-info}/entry_points.txt +0 -0
@@ -78,19 +78,20 @@ class LegacyToPerPartitionStateMigration(StateMigration):
|
|
78
78
|
"<cursor_field>" : "<cursor_value>"
|
79
79
|
}
|
80
80
|
"""
|
81
|
-
if stream_state:
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
81
|
+
if not stream_state:
|
82
|
+
return False
|
83
|
+
for key, value in stream_state.items():
|
84
|
+
# it is expected the internal value to be a dictionary according to docstring
|
85
|
+
if not isinstance(value, dict):
|
86
|
+
return False
|
87
|
+
keys = list(value.keys())
|
88
|
+
if len(keys) != 1:
|
89
|
+
# The input partitioned state should only have one key
|
90
|
+
return False
|
91
|
+
if keys[0] != self._cursor_field:
|
92
|
+
# Unexpected key. Found {keys[0]}. Expected {self._cursor.cursor_field}
|
93
|
+
return False
|
94
|
+
|
94
95
|
return True
|
95
96
|
|
96
97
|
def migrate(self, stream_state: Mapping[str, Any]) -> Mapping[str, Any]:
|
@@ -129,7 +129,7 @@ airbyte_cdk/sources/declarative/interpolation/jinja.py,sha256=UQeuS4Vpyp4hlOn-R3
|
|
129
129
|
airbyte_cdk/sources/declarative/interpolation/macros.py,sha256=UYSJ5gW7TkHALYnNvUnRP3RlyGwGuRMObF3BHuNzjJM,5320
|
130
130
|
airbyte_cdk/sources/declarative/manifest_declarative_source.py,sha256=cZNUOeIogrCmCS7RXeJqQIlnsANigz1cngpLko02M2g,23191
|
131
131
|
airbyte_cdk/sources/declarative/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
132
|
-
airbyte_cdk/sources/declarative/migrations/legacy_to_per_partition_state_migration.py,sha256=
|
132
|
+
airbyte_cdk/sources/declarative/migrations/legacy_to_per_partition_state_migration.py,sha256=V2lpYE9LJKvz6BUViHk4vaRGndxNABmPbDCtyYdkqaE,4013
|
133
133
|
airbyte_cdk/sources/declarative/migrations/state_migration.py,sha256=KWPjealMLKSMtajXgkdGgKg7EmTLR-CqqD7UIh0-eDU,794
|
134
134
|
airbyte_cdk/sources/declarative/models/__init__.py,sha256=nUFxNCiKeYRVXuZEKA7GD-lTHxsiKcQ8FitZjKhPIvE,100
|
135
135
|
airbyte_cdk/sources/declarative/models/base_model_with_deprecations.py,sha256=Imnj3yef0aqRdLfaUxkIYISUb8YkiPrRH_wBd-x8HjM,5999
|
@@ -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.
|
423
|
-
airbyte_cdk-6.48.
|
424
|
-
airbyte_cdk-6.48.
|
425
|
-
airbyte_cdk-6.48.
|
426
|
-
airbyte_cdk-6.48.
|
427
|
-
airbyte_cdk-6.48.
|
422
|
+
airbyte_cdk-6.48.15.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
423
|
+
airbyte_cdk-6.48.15.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
|
424
|
+
airbyte_cdk-6.48.15.dist-info/METADATA,sha256=DP9YSnAFjf7aaIFb4V1xGPe6kc3TY8HAQNZdy7Bgaq4,6344
|
425
|
+
airbyte_cdk-6.48.15.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
426
|
+
airbyte_cdk-6.48.15.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
|
427
|
+
airbyte_cdk-6.48.15.dist-info/RECORD,,
|
{airbyte_cdk-6.48.14.post1.dev15054311822.dist-info → airbyte_cdk-6.48.15.dist-info}/LICENSE.txt
RENAMED
File without changes
|
{airbyte_cdk-6.48.14.post1.dev15054311822.dist-info → airbyte_cdk-6.48.15.dist-info}/LICENSE_SHORT
RENAMED
File without changes
|
File without changes
|
File without changes
|