ClickHouse / ClickHouse/clickhouse-java
beta.row_binary_for_simple_insert fails on Uint64 values larger than long type passed as string
- Langage dominant
- Java
- Étoiles
- 1.6k
- Forks
- 636
- Merge moyen
- 2 j 23 h
- PR mergées (30 j)
- 29
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();
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- database
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100