Skip to content

Add jdbc-v2: read DatabaseMetaData with SHOW and DESCRIBE statements - #3168

Merged
chernser merged 5 commits into
mainfrom
polyglot/jdbc-metadata-show-statements
Oct 1, 2026
Merged

chernser merged 5 commits into
mainfrom
polyglot/jdbc-metadata-show-statements

test(jdbc-v2): run DatabaseMetaDataTest with SHOW statements in a sub…

05ef73c
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Oct 1, 2026 in 1m 4s

Annotations

Check warning on line 270 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this variable to not match a restricted identifier.

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

Check warning on line 329 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

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

Check failure on line 357 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 115 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this variable to not match a restricted identifier.

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

Check warning on line 372 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

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

Check warning on line 94 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this variable to not match a restricted identifier.

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

Check warning on line 300 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this variable to not match a restricted identifier.

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

Check failure on line 235 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 329 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

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

Check warning on line 147 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested try block into a separate method.

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

Check failure on line 95 in jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/ShowStatementsMetaData.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "TABLE_SCHEM" 3 times.

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