ClickHouse / clickhouse-java

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

[client-v2] Implements conversion from boolean, to boolean. Added tests #1913

Closed chernser closed 1 week ago

chernser commented 1 week ago

Summary

Number values can be converted to boolean and visa versa. This PR fixes this and adds proper conversion boolean to numbers.

Closes: https://github.com/ClickHouse/clickhouse-java/issues/1908

Checklist

Delete items not relevant to your PR:

sonarcloud[bot] commented 1 week ago

Quality Gate Failed Quality Gate failed

Failed conditions
18.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud