时间:2021-07-01 10:21:17 帮助过:13人阅读
( [ [arg_name] arg_type ] [,
RETURNS return_type
LANGUAGE language_name
AS ‘definition‘
注意js 的函数名需要和CREATE FUNCTION 的一样,否则会报错
CREATE FUNCTION my_subtract_function(integer, integer)
RETURNS integer
LANGUAGE JAVASCRIPT
AS ‘function my_subtract_function(a, b) { return a - b; }‘;
因为js 与java 类型是有差异的,所以对于一些处理可能会有问题,官方文档也说明了,值得看看
https://crate.io/docs/crate/reference/en/4.3/general/user-defined-functions.html#supported-languages
cratedb 自定义函数
标签:官方文档 ice load img ble div integer 注意 src