Skip to content

Added wrapper jar to JDBC json example

e6a2e28
Select commit
Loading
Failed to load commit list.
Draft

Added reader for JSONEachRow format. Updated documentation and examples #2871

Added wrapper jar to JDBC json example
e6a2e28
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 10, 2026 in 1m 6s

Quality Gate failed

Annotations

Check warning on line 311 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

Return an empty collection instead of null.

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

Check failure on line 190 in client-v2/src/test/java/com/clickhouse/client/api/data_formats/JSONEachRowFormatReaderTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

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

Check warning on line 60 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=AZ6yta5DOWwJzk61eUEg&open=AZ6yta5DOWwJzk61eUEg&pullRequest=2871

Check failure on line 1501 in jdbc-v2/src/main/java/com/clickhouse/jdbc/ResultSetImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "java.time.Month" enum constant instead of this int literal.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "java.time.Month" enum constant instead of this int literal.

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

Check warning on line 108 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=AZ6yta5DOWwJzk61eUEh&open=AZ6yta5DOWwJzk61eUEh&pullRequest=2871

Check warning on line 57 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/GsonJsonParserFactory.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=AZ6yta5dOWwJzk61eUEp&open=AZ6yta5dOWwJzk61eUEp&pullRequest=2871

Check warning on line 93 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

Return an empty map instead of null.

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

Check warning on line 54 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/GsonJsonParserFactory.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=AZ6yta5dOWwJzk61eUEo&open=AZ6yta5dOWwJzk61eUEo&pullRequest=2871

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "java.time.Month" enum constant instead of this int literal.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "java.time.Month" enum constant instead of this int literal.

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

Check warning on line 850 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

Use a "java.time.Month" enum constant instead of this int literal.

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

Check warning on line 101 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=AZ6yta2yOWwJzk61eUEY&open=AZ6yta2yOWwJzk61eUEY&pullRequest=2871

Check warning on line 62 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=AZ6yta2yOWwJzk61eUEX&open=AZ6yta2yOWwJzk61eUEX&pullRequest=2871

Check warning on line 41 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/JacksonJsonParserFactory.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=AZ6yta4ZOWwJzk61eUEe&open=AZ6yta4ZOWwJzk61eUEe&pullRequest=2871

Check warning on line 239 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

Return an empty collection instead of null.

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

Check failure on line 214 in client-v2/src/test/java/com/clickhouse/client/api/data_formats/JSONEachRowFormatReaderTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

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

Check warning on line 113 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=AZ6yta2yOWwJzk61eUEZ&open=AZ6yta2yOWwJzk61eUEZ&pullRequest=2871

Check warning on line 852 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

Use a "java.time.Month" enum constant instead of this int literal.

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

Check warning on line 338 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 "ClickHouseVersion"; it is deprecated.

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

Check warning on line 40 in client-v2/src/main/java/com/clickhouse/client/api/data_formats/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=AZ6yta4sOWwJzk61eUEf&open=AZ6yta4sOWwJzk61eUEf&pullRequest=2871

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "java.time.Month" enum constant instead of this int literal.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "java.time.Month" enum constant instead of this int literal.

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

Check warning on line 50 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=AZ6yta5DOWwJzk61eUEi&open=AZ6yta5DOWwJzk61eUEi&pullRequest=2871