-
Notifications
You must be signed in to change notification settings - Fork 573
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
batch send err:compress: buf size 607047244 > 134217728 max size #721
Comments
This is a ch-go limitation @ernado can we make this configurable? |
Yes, we can do it. It was introduced to prevent user from accidental OOM. |
If you expose in ch-go (maybe an env variable or settings passed to the encoder init?) we can document in clickhouse-go. |
Lol, now we can close issues with cross-repo references? 🤔 It should be fixed in |
@hanjm next release. Probably Friday or latest next monday. |
so quickly. thank you. :) |
Issue description
Hi, i am using natvie batch with compress, i found if batch size greater 128MB, will produce a error message when invoke
batch.send()
.it seems has a hard limit for size of compress data, what should i do.
https://github.com/ClickHouse/ch-go/blob/main/compress/writer.go#L22
https://github.com/ClickHouse/ch-go/blob/main/compress/compress.go#L31
Example code
Error log
Configuration
OS:
Linux
Interface: E.g.
native
,database/sql
native
Driver version:
2.23-bata2
Go version: run
go version
in your console1.18.2
ClickHouse Server version:
21.8.12
The text was updated successfully, but these errors were encountered: