xiaomi-box opened a new issue, #28161:
URL: https://github.com/apache/doris/issues/28161

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   doris 2.2.0
   
   ### What's Wrong?
   
   User-defined java udf jvm oom The be node exits unexpectedly
   
   
   ### What You Expected?
   
   Supports the normal use of java udf, the doris service is normal, and the 
memory does not continue to grow
   
   ### How to Reproduce?
   
   ## java code
   import org.apache.hadoop.hive.ql.exec.UDF;
   
   /**
    * 将格式化后的json恢复原来的样子
    */
   public class TrimJson extends UDF {
       public String evaluate(String value) {
           String newVal = value.replace("\\", "")
                   .replace("\"{", "{")
                   .replace("}\"", "}")
                   .replace("\"[","[")
                   .replace("]\"","]")
                   ;
           return newVal;
   
       }
   }
   
   ## CREATE FUNCTION
   CREATE FUNCTION report.trim_json(String) RETURNS String PROPERTIES (
       
"file"="file:///mnt/apache-doris-2.0.2-bin-x64/be/lib/java_extensions/test-udf/doris_udf-1.0-SNAPSHOT.jar",
       "symbol"="com.xx.function.TrimJson",
       "always_nullable"="true",
       "type"="JAVA_UDF"
   );
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to