Skip to content

Represent list as a stream of data + sugar coat methods for Req/reply - #17

Merged
ferranbt merged 1 commit into
simplify-data-modelfrom
feat-router-native-stream
Jul 31, 2026
Merged

Represent list as a stream of data + sugar coat methods for Req/reply#17
ferranbt merged 1 commit into
simplify-data-modelfrom
feat-router-native-stream

Conversation

@ferranbt

@ferranbt ferranbt commented Jul 31, 2026

Copy link
Copy Markdown
Owner

This PR changes how we represent data for the data plane list methods. Unlike data plane write methods which take a stream of data, list methods return unary object and the router converts those objects into a stream of data. This was done this way since the first consumers of the list endpoint where req/reply APIs that return unary list of objects.

However, complex providers like Iceberg or Dbs have the ability to return data directly as an stream but had to be accommodated into this API.

This PR makes the default return type of the list method a stream and adds sugar coat functions for the methods that return single unary elements.

@ferranbt
ferranbt merged commit 42a48e8 into main Jul 31, 2026
2 checks passed
@ferranbt
ferranbt deleted the feat-router-native-stream branch July 31, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant