Skip to content

ability to send compressed files/streams#562

Merged
zhicwu merged 2 commits intoClickHouse:developfrom
den-crane:feature/send-compressed-stream
Feb 4, 2021
Merged

ability to send compressed files/streams#562
zhicwu merged 2 commits intoClickHouse:developfrom
den-crane:feature/send-compressed-stream

Conversation

@den-crane
Copy link
Collaborator

I need to upload gzipped files to CH from my JDBC application without decompression them at a client side.

this PR implements this:

.write() // Write API entrypoint
.table("default.my_table") // where to write data
.option("format_csv_delimiter", ";") // specific param
.data(new File("/path/to/file.csv.gz"), ClickHouseFormat.CSV, ClickHouseCompression.gzip) // specify input
.send();

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.

2 participants