com.github.housepower.exception.ClickHouseSQLException: Unknown data type: name
at com.github.housepower.misc.ExceptionUtil.rethrowSQLException(ExceptionUtil.java:82)
at com.github.housepower.jdbc.statement.ClickHouseStatement.executeUpdate(ClickHouseStatement.java:78)
at com.github.housepower.jdbc.statement.ClickHouseStatement.executeQuery(ClickHouseStatement.java:109)
at com.huawei.jdbc.NoEncryptJdbcClient.main(NoEncryptJdbcClient.java:23)
Caused by: java.sql.SQLException: Unknown data type: name
at com.github.housepower.misc.Validate.isTrue(Validate.java:41)
at com.github.housepower.data.DataTypeFactory.get(DataTypeFactory.java:95)
at com.github.housepower.data.type.complex.DataTypeTuple.lambda$static$0(DataTypeTuple.java:39)
at com.github.housepower.data.DataTypeFactory.get(DataTypeFactory.java:68)
at com.github.housepower.data.type.complex.DataTypeArray.lambda$static$0(DataTypeArray.java:39)
at com.github.housepower.data.DataTypeFactory.get(DataTypeFactory.java:70)
at com.github.housepower.data.DataTypeFactory.get(DataTypeFactory.java:55)
at com.github.housepower.data.Block.readFrom(Block.java:43)
at com.github.housepower.protocol.DataResponse.readFrom(DataResponse.java:32)
at com.github.housepower.protocol.Response.readFrom(Response.java:33)
at com.github.housepower.client.NativeClient.receiveResponse(NativeClient.java:207)
at com.github.housepower.client.NativeClient.lambda$receiveQuery$0(NativeClient.java:164)
at com.github.housepower.stream.ClickHouseQueryResult.consumeDataResponse(ClickHouseQueryResult.java:102)
at com.github.housepower.stream.ClickHouseQueryResult.ensureHeaderConsumed(ClickHouseQueryResult.java:93)
at com.github.housepower.stream.ClickHouseQueryResult.header(ClickHouseQueryResult.java:54)
at com.github.housepower.jdbc.statement.ClickHouseStatement.lambda$executeUpdate$0(ClickHouseStatement.java:102)
at com.github.housepower.misc.ExceptionUtil.rethrowSQLException(ExceptionUtil.java:76)
... 3 more
Environment
Error logs
Steps to reproduce
java code:
Other descriptions
execute sql script in the command line:
I see that the latest clickhouse version adds a lot of table and field types. Example: system.settings_changes