ClickHouse / ClickHouse/clickhouse-java
[client-v2,jdbc-v2] Reading Array(Nullable(String)) with BinaryString enabled
- Lingua principale
- Java
- Stelle
- 1.6k
- Fork
- 636
- Merge medio
- 2g 23h
- PR unite (30g)
- 29
Descrizione
### Description
There is a claim:
```
Nullable array strings wrong
High Severity
It looks like readArray is using the top-level readValue for nullable array elements when binaryStringSupport is enabled. This means nested String/FixedString inside Array(Nullable(...)) are read as StringValue instead of plain String. This goes against our rule for container types and could lead to ArrayStoreException or unexpected type mismatches.
```
https://github.com/ClickHouse/clickhouse-java/pull/2952/changes/BASE..c74bd36aae7fd863f0691654f65c87cc9c982415#r3632548114
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by tracing readArray and its use of readValue when binaryStringSupport is enabled, focusing on Array(Nullable(String)) and nested String or FixedString values. Confirm the container returns plain String elements rather than StringValue, and verify that the resulting array avoids the reported type mismatch or ArrayStoreException.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- database
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 58/100