ClickHouse / ClickHouse/clickhouse-java
[client-v2,jdbc-v2] Reading Array(Nullable(String)) with BinaryString enabled
- 主要语言
- Java
- 星标
- 1.6k
- 派生
- 636
- 平均合并
- 2 天 23 小时
- 30 天内合并 PR
- 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
贡献指南
调研方向
首先跟踪 binaryStringSupport 启用时 readArray 及其对 readValue 的使用,重点关注 Array(Nullable(String)) 以及嵌套的 String 或 FixedString 值。确认容器返回的是普通 String 元素,而不是 StringValue,并验证生成的数组能够避免报告的类型不匹配或 ArrayStoreException。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- database
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 58/100