File tree 1 file changed +3
-3
lines changed
airbyte_cdk/sources/declarative/parsers
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1900,6 +1900,8 @@ def _merge_stream_slicers(
1900
1900
) -> Optional [StreamSlicer ]:
1901
1901
retriever_model = model .retriever
1902
1902
1903
+ stream_slicer = self ._build_stream_slicer_from_partition_router (retriever_model , config )
1904
+
1903
1905
if retriever_model .type == "AsyncRetriever" :
1904
1906
is_not_datetime_cursor = (
1905
1907
model .incremental_sync .type != "DatetimeBasedCursor"
@@ -1919,13 +1921,11 @@ def _merge_stream_slicers(
1919
1921
"AsyncRetriever with cursor other than DatetimeBasedCursor is not supported yet."
1920
1922
)
1921
1923
1922
- if is_partition_router :
1924
+ if is_partition_router and not stream_slicer :
1923
1925
# Note that this development is also done in parallel to the per partition development which once merged
1924
1926
# we could support here by calling create_concurrent_cursor_from_perpartition_cursor
1925
1927
raise ValueError ("Per partition state is not supported yet for AsyncRetriever." )
1926
1928
1927
- stream_slicer = self ._build_stream_slicer_from_partition_router (retriever_model , config )
1928
-
1929
1929
if model .incremental_sync :
1930
1930
return self ._build_incremental_cursor (model , stream_slicer , config )
1931
1931
You can’t perform that action at this time.
0 commit comments