From 62cbbef0dee714219e08c167a48cbb1e1fe44bae Mon Sep 17 00:00:00 2001 From: wenchengyao Date: Sat, 26 Oct 2024 11:32:23 +0800 Subject: [PATCH] impl split_part --- .../antgroup/openspg/reasoner/udf/builtin/udf/SplitPart.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reasoner/udf/src/main/java/com/antgroup/openspg/reasoner/udf/builtin/udf/SplitPart.java b/reasoner/udf/src/main/java/com/antgroup/openspg/reasoner/udf/builtin/udf/SplitPart.java index 5c1e5404..dc1f5dc2 100644 --- a/reasoner/udf/src/main/java/com/antgroup/openspg/reasoner/udf/builtin/udf/SplitPart.java +++ b/reasoner/udf/src/main/java/com/antgroup/openspg/reasoner/udf/builtin/udf/SplitPart.java @@ -18,8 +18,8 @@ import org.apache.commons.lang3.StringUtils; public class SplitPart { @UdfDefine(name = "split_part", compatibleName = "SplitPart") - public String split(String str, String delim, Integer partNum) throws Exception { - String[] strings = StringUtils.split(str, delim); + public String split(String str, String separator, Integer partNum) throws Exception { + String[] strings = StringUtils.split(str, separator); int length = strings.length; if (partNum < 0) { partNum = length - 1;