ClickHouse / ClickHouse/clickhouse-java
beta.row_binary_for_simple_insert fails on Uint64 values larger than long type passed as string
- Lenguaje dominante
- Java
- Estrellas
- 1.6k
- Forks
- 636
- Merge medio
- 2 d 23 h
- PR fusionados (30 d)
- 29
Descripción
### 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();
```
Guía de contribución
Línea de trabajo
Start at the row_binary_for_simple_insert path described in the issue and trace how setString values are converted, especially the Long.parseLong call. Reproduce the preparedStatement.setString and addBatch example with a Uint64 value above the long range, then verify that the simple insert completes successfully without changing smaller values.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- database
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100