You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ClickHouse: text values over 128 KiB, or batches over 1 MiB of URL, fail to write #3777
Found while fixing #3765. The ClickHouse driver sends every text parameter as a param_pN URL item (ClickHousePluginDriver+Http.swift:220).
ClickHouse 25.8 refuses a field over http_max_field_value_size (128 KiB) with HTTP 500 "HTML Form Exception: Field value too long", and a URL over http_max_uri_size (1 MiB) with HTTP 400 and an empty body.
The import's batch budget counts raw bytes against 1 MiB (SQLWriteBatchBudget.swift:27), not the percent-encoded URL, so a batch it allows can exceed the URL limit.
Measured: 800 rows of an id and 1,100 bytes of text went out as one 1.2 MB URL and got HTTP 400. One 200,000-byte value got HTTP 500.
Steps to reproduce
Import a CSV of 1,000 rows with a 1,100-character text column into a ClickHouse table: the first batch fails.
Edit a cell to a 200 KB value and save: the save fails.
Expected behavior
Rows and values the server can store are written: long values travel in the request body, and the budget counts what the request carries.
Activity