apache / iotdb

Apache IoTDB
https://iotdb.apache.org/
Apache License 2.0
5.63k stars 1.03k forks source link

[TABLE MODEL] Implement CREATE/SHOW/DROP Function and user-defined scalar function #14223

Open Cpaulyz opened 4 days ago

Cpaulyz commented 4 days ago

Description

https://timechor.feishu.cn/docx/GXnNdt3XIok3CQxBvwWcZxrnntd

This pull request introduces several new user-defined functions (UDFs) and corresponding integration tests for the IoTDB project. The changes include the addition of new scalar functions, updates to existing classes, and the creation of new test cases to ensure the functionality and robustness of the UDF management system.

New Scalar Functions:

Integration Tests:

codecov[bot] commented 4 days ago

Codecov Report

Attention: Patch coverage is 2.29358% with 213 lines in your changes missing coverage. Please review.

Project coverage is 39.59%. Comparing base (b34b714) to head (30be7e5).

Files with missing lines Patch % Lines
...n/execution/config/metadata/ShowFunctionsTask.java 0.00% 58 Missing :warning:
...otdb/commons/udf/utils/UDFDataTypeTransformer.java 0.00% 38 Missing :warning:
...olumn/udf/UserDefineScalarFunctionTransformer.java 0.00% 36 Missing :warning:
...pache/iotdb/commons/udf/access/RecordIterator.java 0.00% 22 Missing :warning:
...execution/relational/ColumnTransformerBuilder.java 0.00% 14 Missing :warning:
...ne/plan/relational/metadata/TableMetadataImpl.java 0.00% 14 Missing :warning:
.../apache/iotdb/commons/udf/utils/TableUDFUtils.java 0.00% 10 Missing :warning:
...yengine/plan/relational/sql/parser/AstBuilder.java 0.00% 9 Missing :warning:
.../plan/execution/config/TableConfigTaskVisitor.java 0.00% 6 Missing :warning:
...otdb/commons/udf/service/UDFManagementService.java 20.00% 4 Missing :warning:
... and 2 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #14223 +/- ## ============================================ - Coverage 39.62% 39.59% -0.04% Complexity 71 71 ============================================ Files 4242 4245 +3 Lines 270437 270647 +210 Branches 32792 32813 +21 ============================================ - Hits 107165 107152 -13 - Misses 163272 163495 +223 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

lancelly commented 4 days ago

What a spectacular work 🦾! Fabulous design and implementation, LGTM! ⚡️⚡️🔥

sonarcloud[bot] commented 3 days ago

Quality Gate Failed Quality Gate failed

Failed conditions
B 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