Yulei-Yang opened a new pull request, #15414: URL: https://github.com/apache/doris/pull/15414
currently, show create function is designed for native function, it has some non proper point. this pr bring several improvements, and make result of show create function can be used to create function. 1. add type property. 2. add ALWAYS_NULLABLE perperty for java_udf 3. remove md5 property, cos file make vary. 4. remove INIT_FN,UPDATE_FN,MERGE_FN,SERIALIZE_FN etc properties for java_udf, cos java_udf does not need these properties. now result: | add1(INT) | CREATE FUNCTION add1(INT) RETURNS INT PROPERTIES ( "SYMBOL"="org.apache.doris.udf.AddOne", "FILE"="file:///data/doris/java-udf-demo-jar-with-dependencies.jar", "ALWAYS_NULLABLE"="false", "TYPE"="JAVA_UDF" ); | sum1(INT) | CREATE AGGREGATE FUNCTION sum1(INT) RETURNS INT PROPERTIES ( "SYMBOL"="org.apache.doris.udf.SimpleDemo", "FILE"="file:///data/doris/java-udf-demo-jar-with-dependencies.jar", "ALWAYS_NULLABLE"="false", "TYPE"="JAVA_UDF" ); | | add_two(INT, INT) | CREATE FUNCTION add_two(INT, INT) RETURNS INT PROPERTIES ( "SYMBOL"="_ZN9doris_udf6AddUdfEPNS_15FunctionContextERKNS_6IntValES4_", "OBJECT_FILE"="file:///data/doris/udf/udf_samples/build/src/udf_samples/libudfsample.so", "TYPE"="NATIVE" ); | # Proposed changes Issue Number: close #xxx ## Problem summary Describe your changes. ## Checklist(Required) 1. Does it affect the original behavior: - [ ] Yes - [x] No - [ ] I don't know 5. Has unit tests been added: - [ ] Yes - [x] No - [ ] No Need 6. Has document been added or modified: - [ ] Yes - [ ] No - [x] No Need 7. Does it need to update dependencies: - [ ] Yes - [x] No 8. Are there any changes that cannot be rolled back: - [ ] Yes (If Yes, please explain WHY) - [x] No ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc... -- 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 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