[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:
qiye
2022-01-25 22:28:05 +08:00
committed by GitHub
parent a6831535e9
commit 461b352d3e
8 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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