Skip to content

Commit

Permalink
fix check for streams that do not use a stream slicer (airbytehq#18080)
Browse files Browse the repository at this point in the history
* fix check for streams that do not use a stream slicer

* increment version and changelog before publish
  • Loading branch information
brianjlai authored and jhammarstedt committed Oct 31, 2022
1 parent f7a81a8 commit 62a85c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions airbyte-cdk/python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.1.102

- Low-code: Fix check for streams that do not define a stream slicer

## 0.1.101

- Low-code: $options do not overwrite parameters that are already set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ def get_request_body_json(
return {}

def stream_slices(self, sync_mode: SyncMode, stream_state: Mapping[str, Any]) -> Iterable[StreamSlice]:
return [dict()]
yield dict()
2 changes: 1 addition & 1 deletion airbyte-cdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name="airbyte-cdk",
version="0.1.101",
version="0.1.102",
description="A framework for writing Airbyte Connectors.",
long_description=README,
long_description_content_type="text/markdown",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ def test():
iterator = SingleSlice(options={})

stream_slices = iterator.stream_slices(SyncMode.incremental, None)
assert stream_slices == [dict()]
next_slice = next(stream_slices)
assert next_slice == dict()

0 comments on commit 62a85c1

Please sign in to comment.