Skip to content

"ClickHouse response without column types" when using CSV format #555

@zhicwu

Description

@zhicwu

Carlos N reported below issue on Telegram:

Carlos N, [28.01.21 05:44]
Hello, I am seeing the following exception when I use the CSV format for the response of my queries:

Caused by: java.lang.IllegalArgumentException: ClickHouse response without column types
 at ru.yandex.clickhouse.response.ClickHouseResultSet.<init>(ClickHouseResultSet.java:111)
 at ru.yandex.clickhouse.ClickHouseStatementImpl.createResultSet(ClickHouseStatementImpl.java:899)
 at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:122)

Carlos N, [28.01.21 05:44]
Has anybody found the issue before? It only happens with some of the most complex queries. I run.

Carlos N, [28.01.21 05:45]
I am using the default jdbc driver

Carlos N, [28.01.21 05:44]
Hello, I am seeing the following exception when I use the CSV format for the response of my queries:

Caused by: java.lang.IllegalArgumentException: ClickHouse response without column types
 at ru.yandex.clickhouse.response.ClickHouseResultSet.<init>(ClickHouseResultSet.java:111)
 at ru.yandex.clickhouse.ClickHouseStatementImpl.createResultSet(ClickHouseStatementImpl.java:899)
 at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:122)

Carlos N, [28.01.21 05:44]
Has anybody found the issue before? It only happens with some of the most complex queries. I run.

Carlos N, [28.01.21 05:45]
I am using the default jdbc driver

Carlos N, [28.01.21 08:58]
[In reply to Zhichun Wu]
Yes, we are using FORMAT because we wanted CSVWithNames, the issue doesn't occur without the FORMAT parameter. Is there a way for it to work with that parameter? This is the full query. 
select
    ...
from (
    ...
) as act
join ...
order by ...
 limit ? offset ? 
FORMAT CSVWithNames

Denny Crane [Junior support specialist at Altinity (NB,Canada)], [28.01.21 08:59]
The fact that following is working in JDBC

select 1 a, 'aaa' b
from numbers(2) 
FORMAT CSVWithNames

Is a bug and must be fixed. To avoid confusion.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions