This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch IOTDB-5195
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit ba611576e0e86347d37b2cd3022b0671b27d17f7
Author: Steve Yurong Su <[email protected]>
AuthorDate: Wed Dec 14 05:02:27 2022 +0800

    refactor udf package
---
 udf-py/{udf => iotdb}/__init__.py                          |  0
 udf-py/{udf/api => iotdb/udf}/__init__.py                  |  0
 udf-py/{udf/api/access => iotdb/udf/api}/__init__.py       |  0
 .../api/collector => iotdb/udf/api/access}/__init__.py     |  0
 udf-py/{ => iotdb}/udf/api/access/row.py                   |  4 ++--
 udf-py/{ => iotdb}/udf/api/access/row_iterator.py          |  0
 udf-py/{ => iotdb}/udf/api/access/row_window.py            |  6 +++---
 .../api/customizer => iotdb/udf/api/collector}/__init__.py |  0
 udf-py/{ => iotdb}/udf/api/collector/point_collector.py    |  2 +-
 .../config => iotdb/udf/api/customizer}/__init__.py        |  0
 .../udf/api/customizer/config}/__init__.py                 |  0
 .../udf/api/customizer/config/udf_configurations.py        |  4 ++--
 .../udf/api/customizer/config/udtf_configurations.py       |  8 ++++----
 .../udf/api/customizer/parameter}/__init__.py              |  0
 .../api/customizer/parameter/udf_parameter_validator.py    | 14 +++++++-------
 .../udf/api/customizer/parameter/udf_parameters.py         |  2 +-
 .../udf/api/customizer/strategy}/__init__.py               |  0
 .../udf/api/customizer/strategy/access_strategy.py         |  2 +-
 .../udf/api/customizer/strategy/access_strategy_type.py    |  0
 .../api/customizer/strategy/row_by_row_access_strategy.py  |  4 ++--
 .../strategy/session_time_window_access_strategy.py        |  6 +++---
 .../strategy/sliding_size_window_access_strategy.py        |  6 +++---
 .../strategy/sliding_time_window_access_strategy.py        |  6 +++---
 .../customizer/strategy/state_window_access_strategy.py    |  6 +++---
 .../{udf/api/type => iotdb/udf/api/exception}/__init__.py  |  0
 .../api/exception/udf_attribute_not_provided_exception.py  |  2 +-
 udf-py/{ => iotdb}/udf/api/exception/udf_exception.py      |  0
 .../udf_input_series_data_type_not_valid_exception.py      |  4 ++--
 .../udf_input_series_index_not_valid_exception.py          |  2 +-
 .../udf_input_series_number_not_valid_exception.py         |  2 +-
 .../udf/api/exception/udf_management_exception.py          |  2 +-
 .../udf_output_series_data_type_not_valid_exception.py     |  2 +-
 .../udf/api/exception/udf_parameter_not_valid_exception.py |  2 +-
 udf-py/{udf/runtime => iotdb/udf/api/type}/__init__.py     |  0
 udf-py/{ => iotdb}/udf/api/type/binary.py                  |  0
 udf-py/{ => iotdb}/udf/api/type/type.py                    |  0
 udf-py/{ => iotdb}/udf/api/udf.py                          |  4 +++-
 udf-py/{ => iotdb}/udf/api/udtf.py                         | 12 ++++++------
 udf-py/{udf => iotdb/udf/runtime}/__init__.py              |  0
 udf-py/setup.py                                            |  4 ++--
 40 files changed, 54 insertions(+), 52 deletions(-)

diff --git a/udf-py/udf/__init__.py b/udf-py/iotdb/__init__.py
similarity index 100%
copy from udf-py/udf/__init__.py
copy to udf-py/iotdb/__init__.py
diff --git a/udf-py/udf/api/__init__.py b/udf-py/iotdb/udf/__init__.py
similarity index 100%
rename from udf-py/udf/api/__init__.py
rename to udf-py/iotdb/udf/__init__.py
diff --git a/udf-py/udf/api/access/__init__.py 
b/udf-py/iotdb/udf/api/__init__.py
similarity index 100%
rename from udf-py/udf/api/access/__init__.py
rename to udf-py/iotdb/udf/api/__init__.py
diff --git a/udf-py/udf/api/collector/__init__.py 
b/udf-py/iotdb/udf/api/access/__init__.py
similarity index 100%
rename from udf-py/udf/api/collector/__init__.py
rename to udf-py/iotdb/udf/api/access/__init__.py
diff --git a/udf-py/udf/api/access/row.py b/udf-py/iotdb/udf/api/access/row.py
similarity index 97%
rename from udf-py/udf/api/access/row.py
rename to udf-py/iotdb/udf/api/access/row.py
index 781de785ea..bcc73eec20 100644
--- a/udf-py/udf/api/access/row.py
+++ b/udf-py/iotdb/udf/api/access/row.py
@@ -17,8 +17,8 @@
 
 from abc import ABCMeta, abstractmethod
 
-from udf.api.type.binary import Binary
-from udf.api.type.type import Type
+from iotdb.udf.api.type.binary import Binary
+from iotdb.udf.api.type.type import Type
 
 
 class Row(metaclass=ABCMeta):
diff --git a/udf-py/udf/api/access/row_iterator.py 
b/udf-py/iotdb/udf/api/access/row_iterator.py
similarity index 100%
rename from udf-py/udf/api/access/row_iterator.py
rename to udf-py/iotdb/udf/api/access/row_iterator.py
diff --git a/udf-py/udf/api/access/row_window.py 
b/udf-py/iotdb/udf/api/access/row_window.py
similarity index 96%
rename from udf-py/udf/api/access/row_window.py
rename to udf-py/iotdb/udf/api/access/row_window.py
index 321fbd65da..691dc0e9e6 100644
--- a/udf-py/udf/api/access/row_window.py
+++ b/udf-py/iotdb/udf/api/access/row_window.py
@@ -18,9 +18,9 @@
 
 from abc import ABCMeta, abstractmethod
 
-from udf.api.access.row import Row
-from udf.api.access.row_iterator import RowIterator
-from udf.api.type.type import Type
+from iotdb.udf.api.access.row import Row
+from iotdb.udf.api.access.row_iterator import RowIterator
+from iotdb.udf.api.type.type import Type
 
 
 class RowWindow(metaclass=ABCMeta):
diff --git a/udf-py/udf/api/customizer/__init__.py 
b/udf-py/iotdb/udf/api/collector/__init__.py
similarity index 100%
rename from udf-py/udf/api/customizer/__init__.py
rename to udf-py/iotdb/udf/api/collector/__init__.py
diff --git a/udf-py/udf/api/collector/point_collector.py 
b/udf-py/iotdb/udf/api/collector/point_collector.py
similarity index 98%
rename from udf-py/udf/api/collector/point_collector.py
rename to udf-py/iotdb/udf/api/collector/point_collector.py
index 9143917c94..74e791206e 100644
--- a/udf-py/udf/api/collector/point_collector.py
+++ b/udf-py/iotdb/udf/api/collector/point_collector.py
@@ -17,7 +17,7 @@
 
 from abc import ABCMeta, abstractmethod
 
-from udf.api.type.binary import Binary
+from iotdb.udf.api.type.binary import Binary
 
 
 class PointCollector(metaclass=ABCMeta):
diff --git a/udf-py/udf/api/customizer/config/__init__.py 
b/udf-py/iotdb/udf/api/customizer/__init__.py
similarity index 100%
rename from udf-py/udf/api/customizer/config/__init__.py
rename to udf-py/iotdb/udf/api/customizer/__init__.py
diff --git a/udf-py/udf/api/customizer/parameter/__init__.py 
b/udf-py/iotdb/udf/api/customizer/config/__init__.py
similarity index 100%
rename from udf-py/udf/api/customizer/parameter/__init__.py
rename to udf-py/iotdb/udf/api/customizer/config/__init__.py
diff --git a/udf-py/udf/api/customizer/config/udf_configurations.py 
b/udf-py/iotdb/udf/api/customizer/config/udf_configurations.py
similarity index 91%
rename from udf-py/udf/api/customizer/config/udf_configurations.py
rename to udf-py/iotdb/udf/api/customizer/config/udf_configurations.py
index 5385590075..f89430470e 100644
--- a/udf-py/udf/api/customizer/config/udf_configurations.py
+++ b/udf-py/iotdb/udf/api/customizer/config/udf_configurations.py
@@ -17,8 +17,8 @@
 
 from abc import ABCMeta
 
-from udf.api.exception.udf_exception import UDFException
-from udf.api.type.type import Type
+from iotdb.udf.api.exception.udf_exception import UDFException
+from iotdb.udf.api.type.type import Type
 
 
 class UDFConfigurations(metaclass=ABCMeta):
diff --git a/udf-py/udf/api/customizer/config/udtf_configurations.py 
b/udf-py/iotdb/udf/api/customizer/config/udtf_configurations.py
similarity index 89%
rename from udf-py/udf/api/customizer/config/udtf_configurations.py
rename to udf-py/iotdb/udf/api/customizer/config/udtf_configurations.py
index b9aeb32ed2..17f4728b51 100644
--- a/udf-py/udf/api/customizer/config/udtf_configurations.py
+++ b/udf-py/iotdb/udf/api/customizer/config/udtf_configurations.py
@@ -15,10 +15,10 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.customizer import UDFConfigurations
-from udf.api.customizer import AccessStrategy
-from udf.api.exception import UDFException
-from udf.api.type import Type
+from iotdb.udf.api.customizer.config.udf_configurations import 
UDFConfigurations
+from iotdb.udf.api.customizer.strategy.access_strategy import AccessStrategy
+from iotdb.udf.api.exception.udf_exception import UDFException
+from iotdb.udf.api.type.type import Type
 
 
 class UDTFConfigurations(UDFConfigurations):
diff --git a/udf-py/udf/api/customizer/strategy/__init__.py 
b/udf-py/iotdb/udf/api/customizer/parameter/__init__.py
similarity index 100%
rename from udf-py/udf/api/customizer/strategy/__init__.py
rename to udf-py/iotdb/udf/api/customizer/parameter/__init__.py
diff --git a/udf-py/udf/api/customizer/parameter/udf_parameter_validator.py 
b/udf-py/iotdb/udf/api/customizer/parameter/udf_parameter_validator.py
similarity index 91%
rename from udf-py/udf/api/customizer/parameter/udf_parameter_validator.py
rename to udf-py/iotdb/udf/api/customizer/parameter/udf_parameter_validator.py
index 6b2df67f51..191dda3653 100644
--- a/udf-py/udf/api/customizer/parameter/udf_parameter_validator.py
+++ b/udf-py/iotdb/udf/api/customizer/parameter/udf_parameter_validator.py
@@ -17,23 +17,23 @@
 
 from typing import List
 
-from udf.api.customizer.parameter.udf_parameters import UDFParameters
-from udf.api.exception.udf_attribute_not_provided_exception import (
+from iotdb.udf.api.customizer.parameter.udf_parameters import UDFParameters
+from iotdb.udf.api.exception.udf_attribute_not_provided_exception import (
     UDFAttributeNotProvidedException,
 )
-from udf.api.exception.udf_input_series_data_type_not_valid_exception import (
+from iotdb.udf.api.exception.udf_input_series_data_type_not_valid_exception 
import (
     UDFInputSeriesDataTypeNotValidException,
 )
-from udf.api.exception.udf_input_series_index_not_valid_exception import (
+from iotdb.udf.api.exception.udf_input_series_index_not_valid_exception import 
(
     UDFInputSeriesIndexNotValidException,
 )
-from udf.api.exception.udf_input_series_number_not_valid_exception import (
+from iotdb.udf.api.exception.udf_input_series_number_not_valid_exception 
import (
     UDFInputSeriesNumberNotValidException,
 )
-from udf.api.exception.udf_parameter_not_valid_exception import (
+from iotdb.udf.api.exception.udf_parameter_not_valid_exception import (
     UDFParameterNotValidException,
 )
-from udf.api.type.type import Type
+from iotdb.udf.api.type.type import Type
 
 
 class UDFParameterValidator:
diff --git a/udf-py/udf/api/customizer/parameter/udf_parameters.py 
b/udf-py/iotdb/udf/api/customizer/parameter/udf_parameters.py
similarity index 98%
rename from udf-py/udf/api/customizer/parameter/udf_parameters.py
rename to udf-py/iotdb/udf/api/customizer/parameter/udf_parameters.py
index 4294da1652..2f99fdfe66 100644
--- a/udf-py/udf/api/customizer/parameter/udf_parameters.py
+++ b/udf-py/iotdb/udf/api/customizer/parameter/udf_parameters.py
@@ -17,7 +17,7 @@
 
 from typing import Dict, List
 
-from udf.api.type.type import Type
+from iotdb.udf.api.type.type import Type
 
 
 # Used in UDTF#beforeStart(UDFParameters, UDTFConfigurations).
diff --git a/udf-py/udf/api/exception/__init__.py 
b/udf-py/iotdb/udf/api/customizer/strategy/__init__.py
similarity index 100%
rename from udf-py/udf/api/exception/__init__.py
rename to udf-py/iotdb/udf/api/customizer/strategy/__init__.py
diff --git a/udf-py/udf/api/customizer/strategy/access_strategy.py 
b/udf-py/iotdb/udf/api/customizer/strategy/access_strategy.py
similarity index 94%
rename from udf-py/udf/api/customizer/strategy/access_strategy.py
rename to udf-py/iotdb/udf/api/customizer/strategy/access_strategy.py
index 0ea5dccc25..f6e772b611 100644
--- a/udf-py/udf/api/customizer/strategy/access_strategy.py
+++ b/udf-py/iotdb/udf/api/customizer/strategy/access_strategy.py
@@ -17,7 +17,7 @@
 
 from abc import ABCMeta, abstractmethod
 
-from udf.api.customizer.strategy.access_strategy_type import AccessStrategyType
+from iotdb.udf.api.customizer.strategy.access_strategy_type import 
AccessStrategyType
 
 
 class AccessStrategy(metaclass=ABCMeta):
diff --git a/udf-py/udf/api/customizer/strategy/access_strategy_type.py 
b/udf-py/iotdb/udf/api/customizer/strategy/access_strategy_type.py
similarity index 100%
rename from udf-py/udf/api/customizer/strategy/access_strategy_type.py
rename to udf-py/iotdb/udf/api/customizer/strategy/access_strategy_type.py
diff --git a/udf-py/udf/api/customizer/strategy/row_by_row_access_strategy.py 
b/udf-py/iotdb/udf/api/customizer/strategy/row_by_row_access_strategy.py
similarity index 90%
rename from udf-py/udf/api/customizer/strategy/row_by_row_access_strategy.py
rename to udf-py/iotdb/udf/api/customizer/strategy/row_by_row_access_strategy.py
index f1c97270a8..a8e72aae30 100644
--- a/udf-py/udf/api/customizer/strategy/row_by_row_access_strategy.py
+++ b/udf-py/iotdb/udf/api/customizer/strategy/row_by_row_access_strategy.py
@@ -15,8 +15,8 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.customizer.strategy.access_strategy import AccessStrategy
-from udf.api.customizer.strategy.access_strategy_type import AccessStrategyType
+from iotdb.udf.api.customizer.strategy.access_strategy import AccessStrategy
+from iotdb.udf.api.customizer.strategy.access_strategy_type import 
AccessStrategyType
 
 
 class RowByRowAccessStrategy(AccessStrategy):
diff --git 
a/udf-py/udf/api/customizer/strategy/session_time_window_access_strategy.py 
b/udf-py/iotdb/udf/api/customizer/strategy/session_time_window_access_strategy.py
similarity index 92%
rename from 
udf-py/udf/api/customizer/strategy/session_time_window_access_strategy.py
rename to 
udf-py/iotdb/udf/api/customizer/strategy/session_time_window_access_strategy.py
index 3992342271..4dbeb5b4a3 100644
--- a/udf-py/udf/api/customizer/strategy/session_time_window_access_strategy.py
+++ 
b/udf-py/iotdb/udf/api/customizer/strategy/session_time_window_access_strategy.py
@@ -15,9 +15,9 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.customizer.strategy.access_strategy import AccessStrategy
-from udf.api.customizer.strategy.access_strategy_type import AccessStrategyType
-from udf.api.exception.udf_exception import UDFException
+from iotdb.udf.api.customizer.strategy.access_strategy import AccessStrategy
+from iotdb.udf.api.customizer.strategy.access_strategy_type import 
AccessStrategyType
+from iotdb.udf.api.exception.udf_exception import UDFException
 
 
 class SessionTimeWindowAccessStrategy(AccessStrategy):
diff --git 
a/udf-py/udf/api/customizer/strategy/sliding_size_window_access_strategy.py 
b/udf-py/iotdb/udf/api/customizer/strategy/sliding_size_window_access_strategy.py
similarity index 94%
rename from 
udf-py/udf/api/customizer/strategy/sliding_size_window_access_strategy.py
rename to 
udf-py/iotdb/udf/api/customizer/strategy/sliding_size_window_access_strategy.py
index 37b141503e..965f5bcdbe 100644
--- a/udf-py/udf/api/customizer/strategy/sliding_size_window_access_strategy.py
+++ 
b/udf-py/iotdb/udf/api/customizer/strategy/sliding_size_window_access_strategy.py
@@ -15,9 +15,9 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.customizer.strategy.access_strategy import AccessStrategy
-from udf.api.customizer.strategy.access_strategy_type import AccessStrategyType
-from udf.api.exception.udf_exception import UDFException
+from iotdb.udf.api.customizer.strategy.access_strategy import AccessStrategy
+from iotdb.udf.api.customizer.strategy.access_strategy_type import 
AccessStrategyType
+from iotdb.udf.api.exception.udf_exception import UDFException
 
 
 class SlidingSizeWindowAccessStrategy(AccessStrategy):
diff --git 
a/udf-py/udf/api/customizer/strategy/sliding_time_window_access_strategy.py 
b/udf-py/iotdb/udf/api/customizer/strategy/sliding_time_window_access_strategy.py
similarity index 95%
rename from 
udf-py/udf/api/customizer/strategy/sliding_time_window_access_strategy.py
rename to 
udf-py/iotdb/udf/api/customizer/strategy/sliding_time_window_access_strategy.py
index 1ff474036b..6f57a63ae5 100644
--- a/udf-py/udf/api/customizer/strategy/sliding_time_window_access_strategy.py
+++ 
b/udf-py/iotdb/udf/api/customizer/strategy/sliding_time_window_access_strategy.py
@@ -15,9 +15,9 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.customizer.strategy.access_strategy import AccessStrategy
-from udf.api.customizer.strategy.access_strategy_type import AccessStrategyType
-from udf.api.exception.udf_exception import UDFException
+from iotdb.udf.api.customizer.strategy.access_strategy import AccessStrategy
+from iotdb.udf.api.customizer.strategy.access_strategy_type import 
AccessStrategyType
+from iotdb.udf.api.exception.udf_exception import UDFException
 
 
 class SlidingTimeWindowAccessStrategy(AccessStrategy):
diff --git a/udf-py/udf/api/customizer/strategy/state_window_access_strategy.py 
b/udf-py/iotdb/udf/api/customizer/strategy/state_window_access_strategy.py
similarity index 92%
rename from udf-py/udf/api/customizer/strategy/state_window_access_strategy.py
rename to 
udf-py/iotdb/udf/api/customizer/strategy/state_window_access_strategy.py
index fb5d7b422e..26ef3cecbf 100644
--- a/udf-py/udf/api/customizer/strategy/state_window_access_strategy.py
+++ b/udf-py/iotdb/udf/api/customizer/strategy/state_window_access_strategy.py
@@ -15,9 +15,9 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.customizer.strategy.access_strategy import AccessStrategy
-from udf.api.customizer.strategy.access_strategy_type import AccessStrategyType
-from udf.api.exception.udf_exception import UDFException
+from iotdb.udf.api.customizer.strategy.access_strategy import AccessStrategy
+from iotdb.udf.api.customizer.strategy.access_strategy_type import 
AccessStrategyType
+from iotdb.udf.api.exception.udf_exception import UDFException
 
 
 class StateWindowAccessStrategy(AccessStrategy):
diff --git a/udf-py/udf/api/type/__init__.py 
b/udf-py/iotdb/udf/api/exception/__init__.py
similarity index 100%
rename from udf-py/udf/api/type/__init__.py
rename to udf-py/iotdb/udf/api/exception/__init__.py
diff --git a/udf-py/udf/api/exception/udf_attribute_not_provided_exception.py 
b/udf-py/iotdb/udf/api/exception/udf_attribute_not_provided_exception.py
similarity index 93%
rename from udf-py/udf/api/exception/udf_attribute_not_provided_exception.py
rename to udf-py/iotdb/udf/api/exception/udf_attribute_not_provided_exception.py
index 011a69c5d5..613baf1aa2 100644
--- a/udf-py/udf/api/exception/udf_attribute_not_provided_exception.py
+++ b/udf-py/iotdb/udf/api/exception/udf_attribute_not_provided_exception.py
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.exception.udf_parameter_not_valid_exception import (
+from iotdb.udf.api.exception.udf_parameter_not_valid_exception import (
     UDFParameterNotValidException,
 )
 
diff --git a/udf-py/udf/api/exception/udf_exception.py 
b/udf-py/iotdb/udf/api/exception/udf_exception.py
similarity index 100%
rename from udf-py/udf/api/exception/udf_exception.py
rename to udf-py/iotdb/udf/api/exception/udf_exception.py
diff --git 
a/udf-py/udf/api/exception/udf_input_series_data_type_not_valid_exception.py 
b/udf-py/iotdb/udf/api/exception/udf_input_series_data_type_not_valid_exception.py
similarity index 91%
rename from 
udf-py/udf/api/exception/udf_input_series_data_type_not_valid_exception.py
rename to 
udf-py/iotdb/udf/api/exception/udf_input_series_data_type_not_valid_exception.py
index 2a2be78639..d5e57314ff 100644
--- a/udf-py/udf/api/exception/udf_input_series_data_type_not_valid_exception.py
+++ 
b/udf-py/iotdb/udf/api/exception/udf_input_series_data_type_not_valid_exception.py
@@ -17,10 +17,10 @@
 
 from typing import List
 
-from udf.api.exception.udf_parameter_not_valid_exception import (
+from iotdb.udf.api.exception.udf_parameter_not_valid_exception import (
     UDFParameterNotValidException,
 )
-from udf.api.type.type import Type
+from iotdb.udf.api.type.type import Type
 
 
 class UDFInputSeriesDataTypeNotValidException(UDFParameterNotValidException):
diff --git 
a/udf-py/udf/api/exception/udf_input_series_index_not_valid_exception.py 
b/udf-py/iotdb/udf/api/exception/udf_input_series_index_not_valid_exception.py
similarity index 94%
rename from 
udf-py/udf/api/exception/udf_input_series_index_not_valid_exception.py
rename to 
udf-py/iotdb/udf/api/exception/udf_input_series_index_not_valid_exception.py
index 64558c7699..4917cceed8 100644
--- a/udf-py/udf/api/exception/udf_input_series_index_not_valid_exception.py
+++ 
b/udf-py/iotdb/udf/api/exception/udf_input_series_index_not_valid_exception.py
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.exception.udf_parameter_not_valid_exception import (
+from iotdb.udf.api.exception.udf_parameter_not_valid_exception import (
     UDFParameterNotValidException,
 )
 
diff --git 
a/udf-py/udf/api/exception/udf_input_series_number_not_valid_exception.py 
b/udf-py/iotdb/udf/api/exception/udf_input_series_number_not_valid_exception.py
similarity index 95%
rename from 
udf-py/udf/api/exception/udf_input_series_number_not_valid_exception.py
rename to 
udf-py/iotdb/udf/api/exception/udf_input_series_number_not_valid_exception.py
index 99221a1e34..4443616c51 100644
--- a/udf-py/udf/api/exception/udf_input_series_number_not_valid_exception.py
+++ 
b/udf-py/iotdb/udf/api/exception/udf_input_series_number_not_valid_exception.py
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.exception.udf_parameter_not_valid_exception import (
+from iotdb.udf.api.exception.udf_parameter_not_valid_exception import (
     UDFParameterNotValidException,
 )
 
diff --git a/udf-py/udf/api/exception/udf_management_exception.py 
b/udf-py/iotdb/udf/api/exception/udf_management_exception.py
similarity index 93%
rename from udf-py/udf/api/exception/udf_management_exception.py
rename to udf-py/iotdb/udf/api/exception/udf_management_exception.py
index 26cc79ad69..46cc353ec2 100644
--- a/udf-py/udf/api/exception/udf_management_exception.py
+++ b/udf-py/iotdb/udf/api/exception/udf_management_exception.py
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.exception.udf_exception import UDFException
+from iotdb.udf.api.exception.udf_exception import UDFException
 
 
 class UDFManagementException(UDFException):
diff --git 
a/udf-py/udf/api/exception/udf_output_series_data_type_not_valid_exception.py 
b/udf-py/iotdb/udf/api/exception/udf_output_series_data_type_not_valid_exception.py
similarity index 94%
rename from 
udf-py/udf/api/exception/udf_output_series_data_type_not_valid_exception.py
rename to 
udf-py/iotdb/udf/api/exception/udf_output_series_data_type_not_valid_exception.py
index 7982993f22..2b3a634503 100644
--- 
a/udf-py/udf/api/exception/udf_output_series_data_type_not_valid_exception.py
+++ 
b/udf-py/iotdb/udf/api/exception/udf_output_series_data_type_not_valid_exception.py
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.exception.udf_parameter_not_valid_exception import (
+from iotdb.udf.api.exception.udf_parameter_not_valid_exception import (
     UDFParameterNotValidException,
 )
 
diff --git a/udf-py/udf/api/exception/udf_parameter_not_valid_exception.py 
b/udf-py/iotdb/udf/api/exception/udf_parameter_not_valid_exception.py
similarity index 93%
rename from udf-py/udf/api/exception/udf_parameter_not_valid_exception.py
rename to udf-py/iotdb/udf/api/exception/udf_parameter_not_valid_exception.py
index 90d2c4ce97..332d5da597 100644
--- a/udf-py/udf/api/exception/udf_parameter_not_valid_exception.py
+++ b/udf-py/iotdb/udf/api/exception/udf_parameter_not_valid_exception.py
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from udf.api.exception.udf_exception import UDFException
+from iotdb.udf.api.exception.udf_exception import UDFException
 
 
 class UDFParameterNotValidException(UDFException):
diff --git a/udf-py/udf/runtime/__init__.py 
b/udf-py/iotdb/udf/api/type/__init__.py
similarity index 100%
rename from udf-py/udf/runtime/__init__.py
rename to udf-py/iotdb/udf/api/type/__init__.py
diff --git a/udf-py/udf/api/type/binary.py b/udf-py/iotdb/udf/api/type/binary.py
similarity index 100%
rename from udf-py/udf/api/type/binary.py
rename to udf-py/iotdb/udf/api/type/binary.py
diff --git a/udf-py/udf/api/type/type.py b/udf-py/iotdb/udf/api/type/type.py
similarity index 100%
rename from udf-py/udf/api/type/type.py
rename to udf-py/iotdb/udf/api/type/type.py
diff --git a/udf-py/udf/api/udf.py b/udf-py/iotdb/udf/api/udf.py
similarity index 92%
rename from udf-py/udf/api/udf.py
rename to udf-py/iotdb/udf/api/udf.py
index d355141c2b..5b61246470 100644
--- a/udf-py/udf/api/udf.py
+++ b/udf-py/iotdb/udf/api/udf.py
@@ -17,7 +17,9 @@
 
 from abc import ABCMeta
 
-from udf.api.customizer.parameter.udf_parameter_validator import 
UDFParameterValidator
+from iotdb.udf.api.customizer.parameter.udf_parameter_validator import (
+    UDFParameterValidator,
+)
 
 
 class UDF(metaclass=ABCMeta):
diff --git a/udf-py/udf/api/udtf.py b/udf-py/iotdb/udf/api/udtf.py
similarity index 91%
rename from udf-py/udf/api/udtf.py
rename to udf-py/iotdb/udf/api/udtf.py
index 8cd7c3c2e1..773039d0ec 100644
--- a/udf-py/udf/api/udtf.py
+++ b/udf-py/iotdb/udf/api/udtf.py
@@ -16,12 +16,12 @@
 # under the License.
 from abc import abstractmethod
 
-from udf.api.access.row import Row
-from udf.api.access.row_window import RowWindow
-from udf.api.collector.point_collector import PointCollector
-from udf.api.customizer.config.udtf_configurations import UDTFConfigurations
-from udf.api.customizer.parameter.udf_parameters import UDFParameters
-from udf.api.udf import UDF
+from iotdb.udf.api.access.row import Row
+from iotdb.udf.api.access.row_window import RowWindow
+from iotdb.udf.api.collector.point_collector import PointCollector
+from iotdb.udf.api.customizer.config.udtf_configurations import 
UDTFConfigurations
+from iotdb.udf.api.customizer.parameter.udf_parameters import UDFParameters
+from iotdb.udf.api.udf import UDF
 
 
 class UDTF(UDF):
diff --git a/udf-py/udf/__init__.py b/udf-py/iotdb/udf/runtime/__init__.py
similarity index 100%
rename from udf-py/udf/__init__.py
rename to udf-py/iotdb/udf/runtime/__init__.py
diff --git a/udf-py/setup.py b/udf-py/setup.py
index 79404284c3..a6aed999fc 100644
--- a/udf-py/setup.py
+++ b/udf-py/setup.py
@@ -30,9 +30,9 @@ print(long_description)
 setuptools.setup(
     name="apache-iotdb-udf",
     version="1.0.0",
-    author=" Apache Software Foundation",
+    author="Apache Software Foundation",
     author_email="[email protected]",
-    description="Apache IoTDB client API",
+    description="Apache IoTDB UDF API",
     long_description=long_description,
     long_description_content_type="text/markdown",
     url="https://github.com/apache/iotdb";,

Reply via email to