GBase 8a MPP数据库支持Python UDF函数吗?能否提供个示例。
gbase> create function type_int(i int) returns int $$ return i $$ LANGUAGE plpythonu;
Query OK, 0 rows affected (Elapsed: 00:00:00.34)
gbase> select type_int(1);
+-------------+
| type_int(1) |
+-------------+
| 1 |
+-------------+
1 row in set (Elapsed: 00:00:00.09)
gbase> drop function type_int;
Query OK, 0 rows affected (Elapsed: 00:00:00.03)