File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
airbyte_cdk/sources/declarative/stream_slicers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,14 +82,14 @@ def __init__(
8282 self ._hash = SliceHasher .hash (self ._stream_name , self ._stream_slice )
8383
8484 def read (self ) -> Iterable [Record ]:
85- if self ._max_records_limit :
85+ if self ._max_records_limit is not None :
8686 global total_record_counter
8787 if total_record_counter >= self ._max_records_limit :
8888 return
8989 for stream_data in self ._retriever .read_records (
9090 self ._schema_loader .get_json_schema (), self ._stream_slice
9191 ):
92- if self ._max_records_limit :
92+ if self ._max_records_limit is not None :
9393 if total_record_counter >= self ._max_records_limit :
9494 break
9595
@@ -107,7 +107,7 @@ def read(self) -> Iterable[Record]:
107107 else :
108108 self ._message_repository .emit_message (stream_data )
109109
110- if self ._max_records_limit :
110+ if self ._max_records_limit is not None :
111111 total_record_counter += 1
112112
113113 def to_slice (self ) -> Optional [Mapping [str , Any ]]:
You can’t perform that action at this time.
0 commit comments