ClickHouse / clickhouse-java

ClickHouse Java Clients & JDBC Driver
https://clickhouse.com
Apache License 2.0
1.44k stars 533 forks source link

PrettyJSONEachRow is not supported by driver #1380

Open shabalin opened 1 year ago

shabalin commented 1 year ago

I am using the latest driver version (0.4.6) in my IDE, and when I run a query with PrettyJSONEachRow format I get the error No enum constant com.clickhouse.data.ClickHouseFormat.PrettyJSONEachRow

Steps to reproduce

Run any query with FORMAT specified as PrettyJSONEachRow:

select version() format PrettyJSONEachRow;

Expected behaviour

return result in pretty json format

Error message

No enum constant com.clickhouse.data.ClickHouseFormat.PrettyJSONEachRow

Configuration

Environment

ClickHouse server

zhicwu commented 1 year ago

Thank you @shabalin for the report. Will add the missing formats into ClickHouseFormat class.