Skip to content

[Enhancement] java udf does not support overloaded evaluate method #22680

@whutpencil

Description

@whutpencil

Search before asking

  • I had searched in the issues and found no similar issues.

Description

Usually, the hive udf we write comes with multiple evaluate methods to pass different numbers of parameters, but this udf will report the following error when registered in Doris:

A simple example is that a udf has the following two evaluate methods:

public String evaluate(String ip, String test) {
        return "good";
    }

public int evaluate(String ip, int test) {
        return 1;
    }
ERROR 1105 (HY000): errCode = 2, detailMessage = UDF class 'com.xxx.uu.hive.udf.Query' has multiple methods with name 'evaluate' 

Solution

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions