clickhouse-java
clickhouse-java copied to clipboard
[client-v2] fixed number conversion in reader
Summary
This PR make it possible to read columns into wider type. It is not possible with current implementation.
Examples
- column of
int8can be read asByte,Short, ... - column of
int16can be read asShort,Integer. ... but it cannot be read asBytebecause can potentially truncate data. In this case application is responsible to do proper conversion.
Closes: https://github.com/ClickHouse/clickhouse-java/issues/1852
Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [x] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials
@mzitnik I may not tell exact numbers - will try running benchmark tests.
