ClickHouse / ClickHouse/clickhouse-java

[client-v2,jdbc-v2] Reading Array(Nullable(String)) with BinaryString enabled

オープン
#2,953 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:data-type client-api-v2 jdbc-v2
主要言語
Java
スター
1.6k
フォーク
636
平均マージ
2日 23時間
マージ済み PR(30日)
29

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
database
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
58/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。