Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datafusion-cli displays error prefix twice #13979

Closed
niebayes opened this issue Jan 2, 2025 · 1 comment · Fixed by #14000
Closed

datafusion-cli displays error prefix twice #13979

niebayes opened this issue Jan 2, 2025 · 1 comment · Fixed by #14000
Labels
bug Something isn't working

Comments

@niebayes
Copy link
Contributor

niebayes commented Jan 2, 2025

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

@niebayes niebayes added the bug Something isn't working label Jan 2, 2025
@niebayes niebayes changed the title datafusion-cli returns error prefix twice datafusion-cli displays error prefix twice Jan 2, 2025
@alamb
Copy link
Contributor

alamb commented Jan 4, 2025

@avkirilishin has a very nice PR up to fix this issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants