Skip to content

Improve candidate functions suggestions #15817

@comphead

Description

@comphead

Is your feature request related to a problem or challenge?

In the test below the suggestion should not be shown

> select array_repeat(1, null);
Error during planning: Execution error: Function 'array_repeat' user-defined coercion failed with "Execution error: count must be an integer type" No function matches the given name and argument types 'array_repeat(Int64, Null)'. You might need to add explicit type casts.
        Candidate functions:
        array_repeat(UserDefined)

The error and comment are self explanatory, and having

        Candidate functions:
        array_repeat(UserDefined)

is confusing

Describe the solution you'd like

Its probably not easy to do, but we need to introduce some error type that defines the function was found but the signature is not correct, in this case we should list a function with a correct signature as a suggestion

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions