From 39cb229b1ce2a8bc6909ec3b3cf8a0dd343c9d7b Mon Sep 17 00:00:00 2001 From: Moon <2267016840@qq.com> Date: Sun, 22 Sep 2024 19:46:46 +0800 Subject: [PATCH] [INLONG-10883][SDK] Transform SQL support InitCap function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix unit test bugļ¼šreturn "" if params null --- .../transform/process/function/string/TestInitCapFunction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/function/string/TestInitCapFunction.java b/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/function/string/TestInitCapFunction.java index 3a57833f9f3..3e98561618e 100644 --- a/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/function/string/TestInitCapFunction.java +++ b/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/function/string/TestInitCapFunction.java @@ -56,6 +56,6 @@ public void testInitCapFunction() throws Exception { // case3: initcap(null) List output3 = processor2.transform("apache inLong", new HashMap<>()); Assert.assertEquals(1, output3.size()); - Assert.assertEquals(output3.get(0), "result=null"); + Assert.assertEquals(output3.get(0), "result="); } } \ No newline at end of file