clickhouse-java icon indicating copy to clipboard operation
clickhouse-java copied to clipboard

java.io.EOFException: reached end of stream after reading xxx bytes; xxx bytes expected

Open russqiang opened this issue 2 years ago • 2 comments

spark sql read from clickhouse, clickhouse-jdbc version 0.2.4

error info

image

russqiang avatar Jul 10 '23 06:07 russqiang

Hi @russqiang, it looks like you're using the legacy JDBC driver which is no longer supported. Could you upgrade to a most recent version like v0.4.6 and try again? In the new version, data format used between client and server was changed from text-based format(TSV) to RowBinary, so you may want to test in a local environment before applying the change to PROD.

zhicwu avatar Jul 11 '23 23:07 zhicwu

@russqiang Have you done the experiment?

mzitnik avatar Aug 02 '23 10:08 mzitnik