ClickHouse / ClickHouse/clickhouse-java

beta.row_binary_for_simple_insert fails on Uint64 values larger than long type passed as string

Offen
#2,619 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:jdbc-insert bug jdbc-v2
Vorherrschende Sprache
Java
Sterne
1.6k
Forks
636
Ø Merge
2 T. 23 Std.
Gemergte PRs (30 T.)
29

Beschreibung

### 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();
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
database
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.