Skip to content

datafusion-cli displays error prefix twice #13979

@niebayes

Description

@niebayes

Describe the bug

> select version();
+-------------------------------------------+
| version()                                 |
+-------------------------------------------+
| Apache DataFusion 43.0.0, x86_64 on linux |
+-------------------------------------------+
1 row(s) fetched. 
Elapsed 0.002 seconds.

> select version(1);
Error during planning: Error during planning: Coercion from [Int64] to the signature Exact([]) failed. No function matches the given name and argument types 'version(Int64)'. You might need to add explicit type casts.
        Candidate functions:
        version()

As seen in the above, the Error during planning was displayed twice.

To Reproduce

cargo install datafusion-cli to install the latest version of datafusion-cli, and execute select version(1).

Expected behavior

The error prefix Error during planning gets displayed only once.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions