Skip to content

Can't use JSONCompact formatter #189

Closed

Description

@dubcan

Query:

 SELECT 1 FORMAT JSONCompact

Expected result:

{
	"meta":
	[
		{
			"name": "1",
			"type": "UInt8"
		}
	],

	"data":
	[
		[1]
	],

	"rows": 1,

	"statistics":
	{
		"elapsed": 0.00002133,
		"rows_read": 1,
		"bytes_read": 1
	}
}

Result:

ru.yandex.clickhouse.except.ClickHouseUnknownException: ClickHouse exception, code: 1002, host: unknown, port: -1; 	[
	at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.getException(ClickHouseExceptionSpecifier.java:88)
	at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:55)
	at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:28)
	at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:32)
	at ru.yandex.clickhouse.response.ClickHouseResultSet.checkValues(ClickHouseResultSet.java:155)
	at ru.yandex.clickhouse.response.ClickHouseResultSet.next(ClickHouseResultSet.java:137)

Activity

  1. dubcan commented on Mar 21, 2018

    @dubcan
    Author

    Incorrect usage of library from my side

    Details:
    #188

  2. added
    data-types
    jdbc
    legacy
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    data-typesjdbclegacyquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions