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
Enhance insert() API to support SELECT with input() for computed columns v2 #2726
clientModule: the client (client-v2; with legacy: the v1 client)enhancementqueriesArea: how the client builds and runs statements (parameters, quoting, batches)
Hi team, any update on this? We have this in production and would like to know if this is on the road map.
We are actively using the undocumented workaround in production,
since it's undocumented any client-v2 patch release could break it silently.
Happy to test any proposed API changes or provide more details about our use case.
Recommendation: Keep open — review PR #3460
PR #3460 adds Client#insertQuery, which takes the application's INSERT statement. With its diff, the issue's INSERT INTO target_table SELECT … FROM input(…) form with CSV data inserts the computed column. The PR does not link this issue.
Category: Feature
Classification: impact: none · area: Queries (INSERT with input())
Status on main: Not supported on main — on 8480ca001 with ClickHouse 26.11.2.4, the issue's workaround (the statement in the tableName argument, CSVWithNames data) inserts the rows with the computed column.
Breaking change: No — can be done without a break, with a new method.
Analysis: Each insert() method makes INSERT INTO <tableName> [(columns)] FORMAT <format> from its arguments (client-v2/src/main/java/com/clickhouse/client/api/Client.java:1846), so no method takes an INSERT … SELECT statement. The workaround works because the table name text goes into the SQL unchanged; the docs describe tableName only as a target table name (docs/clickhouse-docs/client.mdx:630).
Automated triage by Polyglot AI. A maintainer makes the final decision.
clientModule: the client (client-v2; with legacy: the v1 client)enhancementqueriesArea: how the client builds and runs statements (parameters, quoting, batches)
Activity
chernser commentedon Jan 28, 2026
Good day, @suman-tercept !
Thank you for bringing this up!
We will plan it in one of the next releases.
suman-tercept commentedon Jan 29, 2026
Thank you @chernser for the quick response!
We're looking forward to the official support. Happy to help with testing or provide feedback once it's available.
suman-tercept commentedon Apr 28, 2026
Hi team, any update on this? We have this in production and would like to know if this is on the road map.
We are actively using the undocumented workaround in production,
since it's undocumented any client-v2 patch release could break it silently.
Happy to test any proposed API changes or provide more details about our use case.
polyglotAI-bot commentedon Nov 28, 2026
Recommendation: Keep open — review PR #3460
PR #3460 adds
Client#insertQuery, which takes the application'sINSERTstatement. With its diff, the issue'sINSERT INTO target_table SELECT … FROM input(…)form withCSVdata inserts the computed column. The PR does not link this issue.main: Not supported on main — on8480ca001with ClickHouse 26.11.2.4, the issue's workaround (the statement in thetableNameargument,CSVWithNamesdata) inserts the rows with the computed column.Analysis: Each
insert()method makesINSERT INTO <tableName> [(columns)] FORMAT <format>from its arguments (client-v2/src/main/java/com/clickhouse/client/api/Client.java:1846), so no method takes anINSERT … SELECTstatement. The workaround works because the table name text goes into the SQL unchanged; the docs describetableNameonly as a target table name (docs/clickhouse-docs/client.mdx:630).Automated triage by Polyglot AI. A maintainer makes the final decision.