[fix](function) Change digital_masking function arg type to BIGINT (#7888)
Change digital_masking function arg type to BIGINT to fix the wrong result.
This commit is contained in:
@ -131,7 +131,7 @@ If the `function_name` contains the database name, the custom function will be c
|
||||
|
||||
```
|
||||
-- create a custom functional alias function
|
||||
CREATE ALIAS FUNCTION id_masking(INT) WITH PARAMETER(id)
|
||||
CREATE ALIAS FUNCTION id_masking(BIGINT) WITH PARAMETER(id)
|
||||
AS CONCAT(LEFT(id, 3), '****', RIGHT(id, 4));
|
||||
|
||||
-- create a custom cast alias function
|
||||
|
||||
@ -60,7 +60,7 @@ Intermediate Type: NULL
|
||||
Intermediate Type: NULL
|
||||
Properties: {"object_file":"http://host:port/libudasample.so","finalize_fn":"_ZN9doris_udf13CountFinalizeEPNS_15FunctionContextERKNS_9BigIntValE","init_fn":"_ZN9doris_udf9CountInitEPNS_15FunctionContextEPNS_9BigIntValE","merge_fn":"_ZN9doris_udf10CountMergeEPNS_15FunctionContextERKNS_9BigIntValEPS2_","md5":"37d185f80f95569e2676da3d5b5b9d2f","update_fn":"_ZN9doris_udf11CountUpdateEPNS_15FunctionContextERKNS_6IntValEPNS_9BigIntValE"}
|
||||
*************************** 3. row ***************************
|
||||
Signature: id_masking(INT)
|
||||
Signature: id_masking(BIGINT)
|
||||
Return Type: VARCHAR
|
||||
Function Type: Alias
|
||||
Intermediate Type: NULL
|
||||
|
||||
Reference in New Issue
Block a user