Skip to content

[PostgreSQL] Add a PostgreSQL wire protocol service for the table model - #19350

Draft
chrisdutz wants to merge 7 commits into
masterfrom
feature/postgresql-wire-protocol
Draft

chrisdutz wants to merge 7 commits into
masterfrom
feature/postgresql-wire-protocol

Record Power BI's SQL and answer information_schema.character_sets

0b2fe71
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 21, 2026 in 7m 9s

Quality Gate failed

Failed conditions
C 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 1450 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/PgToTableSql.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof Function function'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIZP0veDb1fQOTv&open=AaH41LIZP0veDb1fQOTv&pullRequest=19350

Check warning on line 110 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/consensus/statemachine/ConfigRegionStateMachine.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Single-line Javadoc comment should be multi-line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41K6NP0veDb1fQOPq&open=AaH41K6NP0veDb1fQOPq&pullRequest=19350

Check failure on line 62 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/DateTimeRules.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LICP0veDb1fQORB&open=AaH41LICP0veDb1fQORB&pullRequest=19350

Check warning on line 28 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/types/TimestampPrecision.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Single-line Javadoc comment should be multi-line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIhP0veDb1fQOUz&open=AaH41LIhP0veDb1fQOUz&pullRequest=19350

Check warning on line 839 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/catalog/StaticCatalog.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Method name 'f' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9_]*$'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LH3P0veDb1fQOQm&open=AaH41LH3P0veDb1fQOQm&pullRequest=19350

Check warning on line 114 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/PgToTableSql.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Single-line Javadoc comment should be multi-line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIZP0veDb1fQOT5&open=AaH41LIZP0veDb1fQOT5&pullRequest=19350

Check warning on line 83 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/StringLiterals.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'block' child has incorrect indentation level 12, expected level should be 10.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIEP0veDb1fQOSC&open=AaH41LIEP0veDb1fQOSC&pullRequest=19350

Check warning on line 197 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/types/ParameterDecoder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIgP0veDb1fQOUr&open=AaH41LIgP0veDb1fQOUr&pullRequest=19350

Check warning on line 164 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/DateTimeRules.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Simplify this regular expression to reduce its complexity from 40 to the 20 allowed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LICP0veDb1fQORL&open=AaH41LICP0veDb1fQORL&pullRequest=19350

Check warning on line 1564 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/PgToTableSql.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIZP0veDb1fQOTX&open=AaH41LIZP0veDb1fQOTX&pullRequest=19350

Check warning on line 66 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/PgTypeNames.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'}' at column 26 should be alone on a line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIHP0veDb1fQOSV&open=AaH41LIHP0veDb1fQOSV&pullRequest=19350

Check warning on line 3987 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/TypeServices.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'switch rcurly' has incorrect indentation level 12, expected level should be 8.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41KiHP0veDb1fQOPJ&open=AaH41KiHP0veDb1fQOPJ&pullRequest=19350

Check warning on line 786 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/PgToTableSql.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof StringValue stringvalue'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIZP0veDb1fQOTi&open=AaH41LIZP0veDb1fQOTi&pullRequest=19350

Check warning on line 738 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/catalog/StaticCatalog.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Single-line Javadoc comment should be multi-line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LH3P0veDb1fQOQk&open=AaH41LH3P0veDb1fQOQk&pullRequest=19350

Check failure on line 402 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/catalog/PgCatalogTables.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "table_catalog" 5 times.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LHyP0veDb1fQOQI&open=AaH41LHyP0veDb1fQOQI&pullRequest=19350

Check warning on line 1654 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/PgToTableSql.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Single-line Javadoc comment should be multi-line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIZP0veDb1fQOUW&open=AaH41LIZP0veDb1fQOUW&pullRequest=19350

Check warning on line 84 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/StringLiterals.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'for' has incorrect indentation level 12, expected level should be 10.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIEP0veDb1fQOSD&open=AaH41LIEP0veDb1fQOSD&pullRequest=19350

Check warning on line 3798 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/consensus/ConsensusPrefetchingQueue.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

"event" is a method parameter, and should not be used for synchronization.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41KlWP0veDb1fQOPW&open=AaH41KlWP0veDb1fQOPW&pullRequest=19350

Check warning on line 122 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/PgToTableSql.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the total number of break and continue statements in this loop to use at most one.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIYP0veDb1fQOTG&open=AaH41LIYP0veDb1fQOTG&pullRequest=19350

Check warning on line 25 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/StringLiterals.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'}' at column 29 should be alone on a line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIEP0veDb1fQORs&open=AaH41LIEP0veDb1fQORs&pullRequest=19350

Check warning on line 199 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/schema/DeleteTimeSeriesProcedure.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the total number of break and continue statements in this loop to use at most one.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41K3nP0veDb1fQOPg&open=AaH41K3nP0veDb1fQOPg&pullRequest=19350

Check warning on line 66 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/protocol/PgErrors.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'}' at column 23 should be alone on a line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIlP0veDb1fQOU-&open=AaH41LIlP0veDb1fQOU-&pullRequest=19350

Check failure on line 473 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/catalog/PgCatalogTables.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LHyP0veDb1fQOQL&open=AaH41LHyP0veDb1fQOQL&pullRequest=19350

Check warning on line 46 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/session/CursorCommand.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove duplicates in this character class.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LI0P0veDb1fQOWK&open=AaH41LI0P0veDb1fQOWK&pullRequest=19350

Check warning on line 216 in external-service-impl/postgresql/src/main/java/org/apache/iotdb/postgresql/sql/EmptyRelations.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Single-line Javadoc comment should be multi-line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH41LIOP0veDb1fQOTA&open=AaH41LIOP0veDb1fQOTA&pullRequest=19350