Skip to content

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

Merged
chernser merged 11 commits into
mainfrom
06/10/26/jsonl_support
Jun 24, 2026
Merged

Added reader for JSONEachRow format. Updated documentation and examples#2871
chernser merged 11 commits into
mainfrom
06/10/26/jsonl_support

Updated tests after merge

fb3ce31
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 24, 2026 in 59s

Quality Gate failed

Annotations

Check warning on line 418 in client-v2/src/test/java/com/clickhouse/client/query/QueryTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.

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

Check warning on line 269 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 warning on line 858 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=AZ6yta2yOWwJzk61eUEc&open=AZ6yta2yOWwJzk61eUEc&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=AZ6yta1EOWwJzk61eUEP&open=AZ6yta1EOWwJzk61eUEP&pullRequest=2871

Check warning on line 461 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 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 467 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 460 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 574 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 array instead of null.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ6yta5DOWwJzk61eUEn&open=AZ6yta5DOWwJzk61eUEn&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 317 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 array instead of null.

See more on https://sonarcloud.io/project/issues?id=ClickHouse_clickhouse-java&issues=AZ6yta5DOWwJzk61eUEl&open=AZ6yta5DOWwJzk61eUEl&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 151 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 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 859 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 106 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 857 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 465 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 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 341 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 warning on line 404 in client-v2/src/test/java/com/clickhouse/client/query/QueryTests.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.

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

Check failure on line 191 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 failure on line 215 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 52 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