Skip to content

Commit 49bbf7f

Browse files
committed
handle airbyte records
1 parent 665dc1f commit 49bbf7f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

airbyte_cdk/sources/streams/concurrent/adapters.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,15 @@ def read(self) -> Iterable[Record]:
302302
stream_name=self.stream_name(),
303303
associated_slice=self._slice, # type: ignore [arg-type]
304304
)
305+
elif (
306+
isinstance(record_data, AirbyteMessage)
307+
and record_data.record is not None
308+
):
309+
yield Record(
310+
data=record_data.record.data,
311+
stream_name=self.stream_name(),
312+
associated_slice=self._slice, # type: ignore [arg-type]
313+
)
305314
else:
306315
self._message_repository.emit_message(record_data)
307316
except Exception as e:

0 commit comments

Comments
 (0)