Skip to content

Support IoTDBLocal in UDF for table model#18035

Open
Wei-hao-Li wants to merge 11 commits into
masterfrom
IoTDBLocal
Open

Support IoTDBLocal in UDF for table model#18035
Wei-hao-Li wants to merge 11 commits into
masterfrom
IoTDBLocal

fix some

d8ac6a4
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jun 26, 2026 in 2m 45s

Annotations

Check warning on line 2050 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 71 to 64, Complexity from 33 to 14, Nesting Level from 4 to 2, Number of Variables from 12 to 6.

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

Check warning on line 48 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/transformation/dag/column/udf/UserDefineScalarFunctionTransformer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'ioTDBLocal' must contain no more than '2' consecutive capital letters.

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

Check warning on line 85 in iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/ScalarFunction.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=AZ8BmuNPZnCP7rfqDncs&open=AZ8BmuNPZnCP7rfqDncs&pullRequest=18035

Check warning on line 2045 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/relational/ColumnTransformerBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'getIoTDBLocalFactory' must contain no more than '2' consecutive capital letters.

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

Check warning on line 62 in iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/ScalarFunction.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'UDFException'.

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

Check warning on line 528 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 88 to 64, Complexity from 25 to 14, Nesting Level from 3 to 2, Number of Variables from 18 to 6.

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

Check warning on line 310 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/AccumulatorFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

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

Check warning on line 113 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/udf/InternalQueryExecutor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Combine this catch with the one at line 110, which has the same body.

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

Check warning on line 1678 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/plan/planner/TableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'ioTDBLocal' must contain no more than '2' consecutive capital letters.

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

Check warning on line 1721 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/plan/planner/TableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'ioTDBLocal' must contain no more than '2' consecutive capital letters.

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

Check warning on line 2010 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/relational/ColumnTransformerBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'ioTDBLocalFactory' must contain no more than '2' consecutive capital letters.

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

Check warning on line 58 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/GroupedUserDefinedAggregateAccumulator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'ioTDBLocal' must contain no more than '2' consecutive capital letters.

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

Check warning on line 322 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/plan/planner/TableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'ioTDBLocalFactory' must contain no more than '2' consecutive capital letters.

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

Check warning on line 50 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/udf/UDFResultSetImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

First sentence of Javadoc is missing an ending period.

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

Check warning on line 60 in iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/processor/TableFunctionLeafProcessor.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=AZ8BmuMqZnCP7rfqDnck&open=AZ8BmuMqZnCP7rfqDnck&pullRequest=18035

Check warning on line 240 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/AccumulatorFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Method has 9 parameters, which is greater than 7 authorized.

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

Check warning on line 37 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/udf/IoTDBLocalImpl.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=AZ8BmuHhZnCP7rfqDnb6&open=AZ8BmuHhZnCP7rfqDnb6&pullRequest=18035

Check warning on line 1963 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/relational/ColumnTransformerBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'ioTDBLocalFactory' must contain no more than '2' consecutive capital letters.

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

Check warning on line 29 in iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/IoTDBLocal.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'IoTDBLocal' must contain no more than '2' consecutive capital letters.

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

Check warning on line 57 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/UserDefinedAggregateFunctionAccumulator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'ioTDBLocal' must contain no more than '2' consecutive capital letters.

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

Check warning on line 133 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/udf/UDFResultSetImpl.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=apache_iotdb&issues=AZ8DdnhXuGICQHVDyb0m&open=AZ8DdnhXuGICQHVDyb0m&pullRequest=18035

Check warning on line 293 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/AccumulatorFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

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

Check warning on line 38 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/udf/IoTDBLocalImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'IoTDBLocalImpl' must contain no more than '2' consecutive capital letters.

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

Check warning on line 99 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/function/TableFunctionOperator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'ioTDBLocal' must contain no more than '2' consecutive capital letters.

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

Check warning on line 65 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/UserDefinedAggregateFunctionAccumulator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'ioTDBLocal' must contain no more than '2' consecutive capital letters.

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