Skip to content

Commit 1be518b

Browse files
author
maxime.c
committed
format
1 parent 90eeaa6 commit 1be518b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,9 +2051,13 @@ def create_declarative_stream(
20512051
schema_loader = DefaultSchemaLoader(config=config, parameters=options)
20522052

20532053
if (
2054-
isinstance(combined_slicers, PartitionRouter)
2055-
or isinstance(concurrent_cursor, ConcurrentCursor)
2056-
) and not self._emit_connector_builder_messages and not is_parent:
2054+
(
2055+
isinstance(combined_slicers, PartitionRouter)
2056+
or isinstance(concurrent_cursor, ConcurrentCursor)
2057+
)
2058+
and not self._emit_connector_builder_messages
2059+
and not is_parent
2060+
):
20572061
# We are starting to migrate streams to instantiate directly the DefaultStream instead of instantiating the
20582062
# DeclarativeStream and assembling the DefaultStream from that. The plan is the following:
20592063
# * Streams without partition router nor cursors and streams with only partition router. This is the `isinstance(combined_slicers, PartitionRouter)` condition as the first kind with have a SinglePartitionRouter

0 commit comments

Comments
 (0)