Skip to content

Commit 26283ef

Browse files
committed
Pass extra_fields in global_substream_cursor
1 parent 0e7802a commit 26283ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airbyte_cdk/sources/declarative/incremental/global_substream_cursor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def stream_slices(self) -> Iterable[StreamSlice]:
112112
* Yield the last slice. At that point, once there are as many slices yielded as closes, the global slice will be closed too
113113
"""
114114
slice_generator = (
115-
StreamSlice(partition=partition, cursor_slice=cursor_slice)
115+
StreamSlice(partition=partition, cursor_slice=cursor_slice, extra_fields=partition.extra_fields)
116116
for partition in self._partition_router.stream_slices()
117117
for cursor_slice in self._stream_cursor.stream_slices()
118118
)
@@ -128,7 +128,7 @@ def stream_slices(self) -> Iterable[StreamSlice]:
128128

129129
def generate_slices_from_partition(self, partition: StreamSlice) -> Iterable[StreamSlice]:
130130
slice_generator = (
131-
StreamSlice(partition=partition, cursor_slice=cursor_slice)
131+
StreamSlice(partition=partition, cursor_slice=cursor_slice, extra_fields=partition.extra_fields)
132132
for cursor_slice in self._stream_cursor.stream_slices()
133133
)
134134

0 commit comments

Comments
 (0)