From 397c78149c3eb0aad10b6cacd82e82013d4b7dbd Mon Sep 17 00:00:00 2001 From: JuFeng Li <920347627@qq.com> Date: Tue, 2 Mar 2021 18:26:14 +0800 Subject: [PATCH] [Fix-4929][dao]fix ClassCastException when run hive sql with udf (#4930) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ambari2.7.5+hdp3.1兼容ds1.3插件 * params.py * delete unuseless code * fix class cast exception Co-authored-by: 李巨丰 --- .../java/org/apache/dolphinscheduler/dao/entity/UdfFunc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/UdfFunc.java b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/UdfFunc.java index 7932be5750..7a58e361a7 100644 --- a/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/UdfFunc.java +++ b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/UdfFunc.java @@ -230,7 +230,7 @@ public class UdfFunc { if (StringUtils.isBlank(key)) { return null; } - return JSONUtils.parseObject(key); + return JSONUtils.parseObject(key, UdfFunc.class); } } }