Skip to content

Unable to read Protobuf messages #1567

@C0mbatwombat

Description

@C0mbatwombat

Describe the bug

Similar issue as #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions