clickhouse.rs icon indicating copy to clipboard operation
clickhouse.rs copied to clipboard

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

Open slvrtrn opened this issue 1 year ago • 3 comments

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<String> so it is not a breaking change for the current Query::fetch_bytes impl

slvrtrn avatar Nov 08 '24 14:11 slvrtrn

#182

serprex avatar Feb 01 '25 00:02 serprex

Hi, is there any progress on inserting bytes feature ? I want to insert parquet data to table and can't find way to do it.

VladTheJunior avatar May 29 '25 07:05 VladTheJunior

@VladTheJunior, I am currently busy with #221; the insert bytes feature can be put back on track after that.

slvrtrn avatar May 29 '25 17:05 slvrtrn