Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the batch operator underlying rebuild #3391

Merged
merged 3 commits into from
Jul 24, 2023

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented Jul 23, 2023

This takes the internal rebatching operator of the rebuild command and makes it available as the batch <limit> operator. This is particularly useful for formats like Feather or Parquet or connectors like Kafka.

Additionally, this resolves a long-standing todo from the sort operator: We now rebatch its outputs transparently. In very much non-scientific measurements this increased the throughput of later operators in the pipeline significantly.

Note: to avoid merge conflicts this is based on #3390. I did want this to be reviewed separately, though.

@dominiklohmann dominiklohmann added feature New functionality operator Source, transformation, and sink labels Jul 23, 2023
@dominiklohmann dominiklohmann requested a review from mavam July 23, 2023 20:17
This takes the internal rebatching operator of the rebuild command and
makes it available as the `batch <limit>` operator. This is particularly
useful for formats like Feather or Parquet or connectors like Kafka.
This resolves a long-standing todo from the sort operator: We now
rebatch its outputs transparently. In very much non-scientific
measurements this increased the throughput of later operators in the
pipeline significantly.
Copy link
Member

@mavam mavam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Please add a few unit tests, as this is a lower-level building block.

@dominiklohmann
Copy link
Member Author

Please add a few unit tests, as this is a lower-level building block.

I incorporated all the review feedback (thanks!) and added a few basic tests. I'll merge this into #3390 now to cut down on the number of CI runs I need to wait for as that is also already approved and the base of this.

@dominiklohmann dominiklohmann merged commit 23b0b37 into topic/estimated-byte-sizes Jul 24, 2023
@dominiklohmann dominiklohmann deleted the topic/rebatch branch July 24, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality operator Source, transformation, and sink
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants