Skip to content

Added primitive tests for JSON each row

090fb85
Select commit
Loading
Failed to load commit list.
Draft

04/10/26/json format support #2823

Added primitive tests for JSON each row
090fb85
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 10, 2026 in 1m 0s

Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
8.5% Duplication on New Code (required ≤ 3%)
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 6 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/JsonParserFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a private constructor to hide the implicit public one.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spV6AtWMwNTb5g2I&open=AZ15spV6AtWMwNTb5g2I&pullRequest=2823

Check warning on line 29 in client-v2/src/test/java/com/clickhouse/client/api/data_formats/AbstractJSONEachRowFormatReaderTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "ClickHouseNode"; it is deprecated.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spVyAtWMwNTb5g2D&open=AZ15spVyAtWMwNTb5g2D&pullRequest=2823

Check failure on line 183 in jdbc-v2/src/main/java/com/clickhouse/jdbc/StatementImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use try-with-resources or close this "ClickHouseBinaryFormatReader" in a "finally" clause.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spYLAtWMwNTb5g2S&open=AZ15spYLAtWMwNTb5g2S&pullRequest=2823

Check warning on line 13 in client-v2/src/test/java/com/clickhouse/client/api/data_formats/AbstractJSONEachRowFormatReaderTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'com.clickhouse.data.ClickHouseFormat'.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spVyAtWMwNTb5g2F&open=AZ15spVyAtWMwNTb5g2F&pullRequest=2823

Check warning on line 27 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/GsonJsonParser.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty map instead of null.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spWJAtWMwNTb5g2K&open=AZ15spWJAtWMwNTb5g2K&pullRequest=2823

Check warning on line 21 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/JacksonJsonParser.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spWQAtWMwNTb5g2M&open=AZ15spWQAtWMwNTb5g2M&pullRequest=2823

Check warning on line 11 in client-v2/src/test/java/com/clickhouse/client/api/data_formats/AbstractJSONEachRowFormatReaderTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'com.clickhouse.client.api.query.QuerySettings'.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spVyAtWMwNTb5g2E&open=AZ15spVyAtWMwNTb5g2E&pullRequest=2823

Check warning on line 24 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/JsonParserFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spV6AtWMwNTb5g2H&open=AZ15spV6AtWMwNTb5g2H&pullRequest=2823

Check warning on line 37 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/JacksonJsonParser.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty map instead of null.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spWQAtWMwNTb5g2O&open=AZ15spWQAtWMwNTb5g2O&pullRequest=2823

Check warning on line 14 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/JsonParser.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spWCAtWMwNTb5g2J&open=AZ15spWCAtWMwNTb5g2J&pullRequest=2823

Check warning on line 116 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/JSONEachRowFormatReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spWaAtWMwNTb5g2Q&open=AZ15spWaAtWMwNTb5g2Q&pullRequest=2823

Check warning on line 53 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/JSONEachRowFormatReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spWaAtWMwNTb5g2P&open=AZ15spWaAtWMwNTb5g2P&pullRequest=2823

Check warning on line 43 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/JSONEachRowFormatReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Iterate over the "entrySet" instead of the "keySet".

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spWaAtWMwNTb5g2R&open=AZ15spWaAtWMwNTb5g2R&pullRequest=2823

Check warning on line 28 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/JacksonJsonParser.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty map instead of null.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spWQAtWMwNTb5g2N&open=AZ15spWQAtWMwNTb5g2N&pullRequest=2823

Check warning on line 30 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/GsonJsonParser.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty map instead of null.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spWJAtWMwNTb5g2L&open=AZ15spWJAtWMwNTb5g2L&pullRequest=2823

Check warning on line 3 in client-v2/src/test/java/com/clickhouse/client/api/data_formats/JacksonJSONEachRowFormatReaderTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.testng.Assert'.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spU3AtWMwNTb5g2C&open=AZ15spU3AtWMwNTb5g2C&pullRequest=2823

Check warning on line 22 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/JsonParserFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ15spV6AtWMwNTb5g2G&open=AZ15spV6AtWMwNTb5g2G&pullRequest=2823