apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.77k stars 3.29k forks source link

[fix](variable) Resolve the issue of returning content exceptions when dealing with non master set error variables #44435

Open whutpencil opened 8 hours ago

whutpencil commented 8 hours ago

…n dealing with non master set error variables

What problem does this PR solve?

When setting an incorrect variable to a non master, the returned content is abnormal:

` mysql> set global group_by_and_having_use= false;

ERROR 1193 (HY000): errCode = 2, detailMessage = Unknown system variable '%s',the similar variables are %s `

image

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

Check List (For Reviewer who merge this PR)

doris-robot commented 8 hours ago

Thank you for your contribution to Apache Doris. Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?