ClickHouse / ClickHouse/clickhouse-java
beta.row_binary_for_simple_insert fails on Uint64 values larger than long type passed as string
Open
area:jdbc-insert
bug
jdbc-v2
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 636
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 28
Description
### Describe your feedback
when you pass a very large number (larger than max long, but smaller than max UInt64) as a string in a simple insert, the client attempts to convert this value into a long using Long.parseLong, which will fail, as the string value is higher than the long boundary. something like BigInteger.longValue would be required for this translation.
### Code example
```
preparedStatement.setString(1, bignumber);
preparedStatement.addBatch();
```
Contributor guide
Assessment
This issue has not been assessed yet.