ClickHouse / ClickHouse/clickhouse-java
When serialize FixedString and string is bigger than size defined in Table definition
Offen
area:data-type
client-api-v2
v2-feedback
- Vorherrschende Sprache
- Java
- Sterne
- 1.6k
- Forks
- 636
- Ø Merge
- 2 T. 23 Std.
- Gemergte PRs (30 T.)
- 29
Beschreibung
### 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());
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.