-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Move to streaming writes in Rust consumer (#5694)
Refactor the rust consumer so that from within Reduce, the HTTP request is opened and rows are directly written into the socket. This requires splitting up the BytesInsertBatch type as it can be in multiple "states" depending on the stage of the pipeline. It contains a HttpBatch before writing to clickhouse, and contains none before committing offsets. The easiest way that I found is to first make it generic over its internal row data R, then slowly fixing up all the instances where the generic was missing. In a future PR I would like to see: deleting InsertBatch entirely, and replacing all instances with BytesInsertBatch renaming BytesInsertBatch to InsertBatch splitting up types.rs into multiple files
- Loading branch information
Showing
12 changed files
with
1,110 additions
and
196 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.