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

fix: print root cause error message to user facing interface #2486

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

MichaelScofield
Copy link
Collaborator

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

#2428 removes "source" from error, making user facing interfaces (mysql, pg and http) lack of root cause.

Take mysql as an example, selecting an not existed table.

Before:

ERROR 1815 (HY000): Failed to execute query, query: select * from monitor

After:

ERROR 1815 (HY000): Error during planning: Table not found: greptime.public.monitor

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Merging #2486 (31ce170) into develop (73842f1) will decrease coverage by 0.34%.
Report is 3 commits behind head on develop.
The diff coverage is 25.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2486      +/-   ##
===========================================
- Coverage    84.97%   84.64%   -0.34%     
===========================================
  Files          725      725              
  Lines       115463   115466       +3     
===========================================
- Hits         98120    97740     -380     
- Misses       17343    17726     +383     

@killme2008
Copy link
Contributor

@MichaelScofield @shuiyisong is working on improving the error messages.

@MichaelScofield
Copy link
Collaborator Author

@shuiyisong please close this PR if you have already changed the error message shown to user, thx.

@shuiyisong
Copy link
Contributor

@MichaelScofield @killme2008 we can merge this pr now to quick fix this issue. I will fine tune error output based on this pr later

@sunng87 sunng87 added this pull request to the merge queue Sep 25, 2023
Merged via the queue into GreptimeTeam:develop with commit c0f080d Sep 25, 2023
13 checks passed
@MichaelScofield MichaelScofield deleted the fix/print-root-cause branch September 27, 2023 06:50
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants