clickhouse-java
clickhouse-java copied to clipboard
Unable to read Protobuf messages
Describe the bug
Similar issue as https://github.com/ClickHouse/clickhouse-java/issues/1376 I am not able to read Protobuf messages back from the database, and I am not aware of any workaround.
Expected behaviour
Code example
ClickHouseResponse result = sth
.getRequest()
.query("select * from my_table limit 1 SETTINGS format_schema='protoformats:MessageTypeProto' FORMAT Protobuf")
.format(ClickHouseFormat.Protobuf)
.executeAndWait();
result.getInputStream();
Error log
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "com.clickhouse.data.ClickHouseDataProcessor.getInputStream()" because "this.processor" is null
at com.clickhouse.client.ClickHouseStreamResponse.getInputStream(ClickHouseStreamResponse.java:135)
Configuration
Environment
- Client version: com.clickhouse:clickhouse-http-client:0.6.0
- Language version: JDK 17
- OS: Linux
ClickHouse server
- ClickHouse server: 23.10.5