From 9cdcd594cb0295aa739101741767b09ba81c3023 Mon Sep 17 00:00:00 2001 From: MOONSakura0614 <151456101+MOONSakura0614@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:33:16 +0800 Subject: [PATCH] [INLONG-11028][SDK] Transform SQL support UrlEncode & UrlDecode functions Update TestUrlDecodeFunction.java for return "" if pass null --- .../process/function/string/TestUrlDecodeFunction.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/TestUrlDecodeFunction.java b/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/function/string/TestUrlDecodeFunction.java index 9057f7c2ce1..5c3485d8041 100644 --- a/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/function/string/TestUrlDecodeFunction.java +++ b/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/function/string/TestUrlDecodeFunction.java @@ -52,6 +52,6 @@ public void testUrlDecodeFunction() throws Exception { // case2: url_decode(null) -> null List output2 = processor2.transform("|apple|banana|cloud|1", new HashMap<>()); Assert.assertEquals(1, output2.size()); - Assert.assertEquals(output2.get(0), "result=null"); + Assert.assertEquals(output2.get(0), "result="); } }