Skip to content

Unable to access underlying input stream for binary formats #1376

@wasifaleem

Description

@wasifaleem

Describe the bug

When querying in binary formats, I'm unable to access underlying input stream because processor is null.
As I understand it the connector doesn't support all data formats right now, but as a workaround it'd help if the underlying stream is still accessible.

Steps to reproduce

  1. Query using any binary formats like Arrow/Parquet/Avro

Expected behaviour

Code example

val clickhouseResponse = clickHouseClient.read(clickhouseNodes)
            .query("SELECT * FROM table LIMIT 10 FORMAT ArrowStream")
            .format(ClickHouseFormat.ArrowStream)
            .execute()
            .await()

Error log

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.4.6
  • Language version: JDK 18
  • OS: Linux

ClickHouse server

  • ClickHouse Server version: 23.2.2.20

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