ClickHouse / ClickHouse/clickhouse-java

When serialize FixedString and string is bigger than size defined in Table definition

未关闭
#2,223 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:data-type client-api-v2 v2-feedback
主要语言
Java
星标
1.6k
派生
636
平均合并
2 天 23 小时
30 天内合并 PR
29

描述

### Describe your feedback
Currently, the behavior is that if the string that is sent to serialize is bigger, we send only the length defined in the table schema.

A good approach is to have a flag that indicates if it's a bigger throw Exception or send only a string of a defined size.

### Code example
How it's done today
writeFixedString only what is needed.
```java
BinaryStreamUtils.writeFixedString(stream, convertToString(value), column.getPrecision());
```

贡献指南

打开贡献指南

调研方向

从 Java 客户端中对 BinaryStreamUtils.writeFixedString 的序列化调用开始,其中 column.getPrecision() 会限制值。检查 FixedString 列的表示方式以及序列化错误的处理方式;完成意味着针对超大字符串所选择的行为可配置并且有测试覆盖,但 issue 没有列出现有的测试文件。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
databases
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。