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

lihaopeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new e3b946e42ac [Fix](udf) Fix some data type mapping issues (#3331)
e3b946e42ac is described below

commit e3b946e42ac3b37a982793e4868cb4d420091eda
Author: linrrarity <[email protected]>
AuthorDate: Wed Feb 4 14:00:56 2026 +0800

    [Fix](udf) Fix some data type mapping issues (#3331)
---
 docs/query-data/udf/python-user-defined-function.md              | 9 +++++----
 .../current/query-data/udf/python-user-defined-function.md       | 9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/docs/query-data/udf/python-user-defined-function.md 
b/docs/query-data/udf/python-user-defined-function.md
index 6534a342735..0de878382e2 100644
--- a/docs/query-data/udf/python-user-defined-function.md
+++ b/docs/query-data/udf/python-user-defined-function.md
@@ -379,25 +379,26 @@ The following table lists the mapping relationship 
between Doris data types and
 | | `INT` | `int` | 32-bit integer |
 | | `BIGINT` | `int` | 64-bit integer |
 | | `LARGEINT` | `int` | 128-bit integer |
-| | `IPV4` | `int` | IPv4 address (as integer) |
 | Floating Point Types | `FLOAT` | `float` | 32-bit floating point |
 | | `DOUBLE` | `float` | 64-bit floating point |
 | | `TIME` / `TIMEV2` | `float` | Time type (as floating point) |
 | String Types | `CHAR` | `str` | Fixed-length string |
 | | `VARCHAR` | `str` | Variable-length string |
 | | `STRING` | `str` | String |
-| | `IPV6` | `str` | IPv6 address (string format) |
 | | `JSONB` | `str` | JSON binary format (converted to string) |
 | | `VARIANT` | `str` | Variant type (converted to string) |
-| Date/Time Types | `DATE` | `str` | Date string, format `'YYYY-MM-DD'` |
-| | `DATEV2` | `datetime.date` | Date object |
+| | `DATE` | `str` | Date string, format `'YYYY-MM-DD'` |
 | | `DATETIME` | `str` | DateTime string, format `'YYYY-MM-DD HH:MM:SS'` |
+| Date/Time Types | `DATEV2` | `datetime.date` | Date object |
 | | `DATETIMEV2` | `datetime.datetime` | DateTime object |
 | Decimal Types | `DECIMAL` / `DECIMALV2` | `decimal.Decimal` | High-precision 
decimal |
 | | `DECIMAL32` | `decimal.Decimal` | 32-bit fixed-point number |
 | | `DECIMAL64` | `decimal.Decimal` | 64-bit fixed-point number |
 | | `DECIMAL128` | `decimal.Decimal` | 128-bit fixed-point number |
 | | `DECIMAL256` | `decimal.Decimal` | 256-bit fixed-point number |
+| | `TIMESTAMPTZ` | `datetime.datetime` | DateTime object with time zone |
+| IP Data Types | `IPV4` | `ipaddress.IPv4Address` | IPv4 address |
+| | `IPV6` | `ipaddress.IPv6Address` | IPv6 address |
 | Binary Types | `BITMAP` | `bytes` | Bitmap data (currently not supported) |
 | | `HLL` | `bytes` | HyperLogLog data (currently not supported) |
 | | `QUANTILE_STATE` | `bytes` | Quantile state data (currently not supported) 
|
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/query-data/udf/python-user-defined-function.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/query-data/udf/python-user-defined-function.md
index 90b82cfc592..8bf7c3f8170 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/query-data/udf/python-user-defined-function.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/query-data/udf/python-user-defined-function.md
@@ -379,25 +379,26 @@ DROP FUNCTION IF EXISTS py_is_prime(INT);
 | | `INT` | `int` | 32 位整数 |
 | | `BIGINT` | `int` | 64 位整数 |
 | | `LARGEINT` | `int` | 128 位整数 |
-| | `IPV4` | `int` | IPv4 地址(以整数形式) |
 | 浮点类型 | `FLOAT` | `float` | 32 位浮点数 |
 | | `DOUBLE` | `float` | 64 位浮点数 |
 | | `TIME` / `TIMEV2` | `float` | 时间类型(以浮点数表示) |
 | 字符串类型 | `CHAR` | `str` | 定长字符串 |
 | | `VARCHAR` | `str` | 变长字符串 |
 | | `STRING` | `str` | 字符串 |
-| | `IPV6` | `str` | IPv6 地址(字符串形式) |
 | | `JSONB` | `str` | JSON 二进制格式(转换为字符串) |
 | | `VARIANT` | `str` | 变体类型(转换为字符串) |
-| 日期时间类型 | `DATE` | `str` | 日期字符串,格式为 `'YYYY-MM-DD'` |
-| | `DATEV2` | `datetime.date` | 日期对象 |
+| | `DATE` | `str` | 日期字符串,格式为 `'YYYY-MM-DD'` |
 | | `DATETIME` | `str` | 日期时间字符串,格式为 `'YYYY-MM-DD HH:MM:SS'` |
+| 日期时间类型 | `DATEV2` | `datetime.date` | 日期对象 |
 | | `DATETIMEV2` | `datetime.datetime` | 日期时间对象 |
+| | `TIMESTAMPTZ` | `datetime.datetime` | 带时区的日期时间对象 |
 | Decimal 类型 | `DECIMAL` / `DECIMALV2` | `decimal.Decimal` | 高精度小数 |
 | | `DECIMAL32` | `decimal.Decimal` | 32 位定点数 |
 | | `DECIMAL64` | `decimal.Decimal` | 64 位定点数 |
 | | `DECIMAL128` | `decimal.Decimal` | 128 位定点数 |
 | | `DECIMAL256` | `decimal.Decimal` | 256 位定点数 |
+| IP 类型 | `IPV4` | `ipaddress.IPv4Address` | IPv4 地址 |
+| | `IPV6` | `ipaddress.IPv6Address` | IPv6 地址 |
 | 二进制类型 | `BITMAP` | `bytes` | 位图数据(暂不支持该类型) |
 | | `HLL` | `bytes` | HyperLogLog 数据(暂不支持该类型) |
 | | `QUANTILE_STATE` | `bytes` | 分位数状态数据(暂不支持该类型) |


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to