ClickHouse / ClickHouse/clickhouse-rs

Add methods that allow to insert/fetch a stream of bytes in arbitrary format

Open
#174 3 comments 12 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
559
Forks
172
Avg merge
1d 19h
Merged PRs (30d)
3

Description

See the discussion here: https://github.com/ClickHouse/clickhouse-rs/pull/152#issuecomment-2358965178

For raw insert, the main use case is to insert the data from files. Similarly, with raw query, the data can be saved into a file.

- [x] `Query::fetch_bytes` #182
- [ ] `Insert::write_bytes` or a separate impl, such as `InsertBytes` (#339)
- [ ] Add enums (non-exhaustive) for current ClickHouse formats (or at least the most popular ones); see https://github.com/ClickHouse/clickhouse-rs/pull/244#discussion_r2357811600. Enums should implement Into so it is not a breaking change for the current `Query::fetch_bytes` impl

Contributor guide

Open the contributing guide

Research direction

Start with the linked discussion and the existing Query::fetch_bytes work referenced in the issue. Review the unchecked Insert::write_bytes or InsertBytes option and the proposed enums for ClickHouse formats; done means raw insertion is supported and format values are represented without breaking the current Query::fetch_bytes API.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.