ClickHouse / clickhouse-java

ClickHouse Java Clients & JDBC Driver
https://clickhouse.com
Apache License 2.0
1.45k stars 537 forks source link

[client-v2] Passing server parameters with queryRecords method #1959

Closed chernser closed 4 hours ago

chernser commented 5 days ago

Description

There is a method com.clickhouse.client.api.Client#query(java.lang.String, java.util.Map<java.lang.String,java.lang.Object>, com.clickhouse.client.api.query.QuerySettings) that accepts parameters as map of values. This API is very useful to pass sensitive data to avoid putting it into SQL expression making things hard to debug.

Wanted: similar ability to pass params to queryRecords and queryAll