This is an automated email from the ASF dual-hosted git repository.

kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 397c781  [Fix-4929][dao]fix ClassCastException when run hive sql with 
udf (#4930)
397c781 is described below

commit 397c78149c3eb0aad10b6cacd82e82013d4b7dbd
Author: JuFeng Li <[email protected]>
AuthorDate: Tue Mar 2 18:26:14 2021 +0800

    [Fix-4929][dao]fix ClassCastException when run hive sql with udf (#4930)
    
    * ambari2.7.5+hdp3.1兼容ds1.3插件
    
    * params.py
    
    * delete unuseless code
    
    * fix class cast exception
    
    Co-authored-by: 李巨丰 <[email protected]>
---
 .../src/main/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 7932be5..7a58e36 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);
         }
     }
 }

Reply via email to