Commit 11952ca
committed
[improve](udf) let create udf function error msg more clear (apache#54202)
Problem Summary:
sometimes user create function maybe have mistake of parameter
so need more clear error msg to know what happend.
```
ERROR 1105 (HY000): errCode = 2, detailMessage = UDF class 'org.apache.doris.udf.AddOne' method 'evaluate' return[java.lang.Integer] type is not supported!
before and after of error msg
ERROR 1105 (HY000): errCode = 2, detailMessage = UDF class 'org.apache.doris.udf.AddOne' of method 'evaluate' return is [java.lang.Integer] type, but create function command type is STRING
```1 parent 78fe49a commit 11952ca
File tree
1 file changed
+11
-7
lines changed- fe/fe-core/src/main/java/org/apache/doris/analysis
1 file changed
+11
-7
lines changedLines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | | - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
665 | 667 | | |
666 | 668 | | |
667 | 669 | | |
| |||
711 | 713 | | |
712 | 714 | | |
713 | 715 | | |
714 | | - | |
| 716 | + | |
715 | 717 | | |
716 | 718 | | |
717 | 719 | | |
718 | 720 | | |
719 | 721 | | |
720 | | - | |
721 | | - | |
| 722 | + | |
| 723 | + | |
722 | 724 | | |
723 | 725 | | |
724 | 726 | | |
725 | | - | |
726 | | - | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
727 | 731 | | |
728 | 732 | | |
729 | 733 | | |
| |||
0 commit comments