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

Created column exception_code in query_log table #8770

Merged
merged 6 commits into from Jan 23, 2020

Conversation

millb
Copy link
Contributor

@millb millb commented Jan 21, 2020

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Created column exception_code in query_log table
...

Detailed description / Documentation draft:

...

By adding documentation, you'll allow users to try your new feature immediately, not when someone else will have time to document it later. Documentation is necessary for all features that affect user experience in any way. You can add brief documentation draft above, or add documentation right into your patch as Markdown files in docs folder.

If you are doing this for the first time, it's recommended to read the lightweight Contributing to ClickHouse Documentation guide first.


UInt16 exception_code = 0;
if (exception != "")
exception_code = parse<UInt16>(exception.data() + 6, exception.size() - 6); /// pass "Code: "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not what we need.

@alexey-milovidov
Copy link
Member

Look at QueryLog.h
We need to add exception code there.

@alexey-milovidov alexey-milovidov merged commit 2e84949 into ClickHouse:master Jan 23, 2020
alexey-milovidov added a commit that referenced this pull request Jan 23, 2020
@CurtizJ CurtizJ added the pr-improvement Pull request with some product improvements label Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-improvement Pull request with some product improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants