RClickhouse icon indicating copy to clipboard operation
RClickhouse copied to clipboard

unsupported compression method 188

Open schalekamp opened this issue 4 years ago • 10 comments
trafficstars

`> con <- DBI::dbConnect(RClickhouse::clickhouse(), host="myhost", port=9001L, user="", password="")

res <- DBI::dbGetQuery(con,"select * from tbl_sample limit 10") Error in select(conn@ptr, statement) : unsupported compression method 188`

I'm getting this error when I try to fetch data from my clickhouse DB.

schalekamp avatar Nov 03 '21 14:11 schalekamp

Please check which compression your server uses per-default. Could be possible that it is s new/unsupported one.

inkrement avatar Nov 03 '21 14:11 inkrement

Is there a way to set the compression method via the dbConnect call ?

schalekamp avatar Nov 03 '21 14:11 schalekamp

yes, there should be a "compression" argument with the default lz4.

inkrement avatar Nov 03 '21 14:11 inkrement

when I run

SELECT getSetting('network_compression_method');

I get LZ4

Which should be supported by this library?

schalekamp avatar Nov 03 '21 15:11 schalekamp

Which version do you use for the server?

inkrement avatar Nov 03 '21 15:11 inkrement

ClickHouse 21.9.2.17

schalekamp avatar Nov 03 '21 15:11 schalekamp

Invalid deserialization of Native format - expecting a compressed block not where it starts?

Maybe related to DateTime64 https://github.com/IMSMWU/RClickhouse/issues/84 Maybe related to LowCardinality(String). (see Clickhouse setting low_cardinality_allow_in_native_format)

den-crane avatar Nov 04 '21 15:11 den-crane

I use both DateTime64 and LowCardinality(String) in my DDL

schalekamp avatar Nov 04 '21 15:11 schalekamp

Indeed, this is likely the problem at hand. We'll take a closer look at the issue and try to update the client accordingly. However, we cannot provide a time window for the next version.

inkrement avatar Nov 05 '21 12:11 inkrement

Understood. Already a big thank you for taking the time to look into this.

schalekamp avatar Nov 05 '21 12:11 schalekamp