Skip to content

branch-4.1: [fix](show variables) Fix changed variable output in show variables #63734#63793

Merged
yiguolei merged 1 commit into
branch-4.1from
auto-pick-63734-branch-4.1
May 29, 2026
Merged

branch-4.1: [fix](show variables) Fix changed variable output in show variables #63734#63793
yiguolei merged 1 commit into
branch-4.1from
auto-pick-63734-branch-4.1

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Cherry-picked from #63734

…63734)

Problem Summary: SHOW VARIABLES WHERE is evaluated through an internal
schema query. During planning of that internal query, FE may call
setVarOnce() and temporarily change session variables such as
disable_join_reorder. The schema scan then dumps those temporary values
and reports them as Changed, even though they are not user-visible
session changes. This patch dumps variables from a reverted clone so
one-shot internal values do not affect SHOW VARIABLES output, while
preserving the existing information_schema WHERE execution behavior.
@github-actions github-actions Bot requested a review from yiguolei as a code owner May 28, 2026 06:15
@yiguolei
Copy link
Copy Markdown
Contributor

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 73.91% (17/23) 🎉
Increment coverage report
Complete coverage report

@yiguolei yiguolei closed this May 29, 2026
@yiguolei yiguolei reopened this May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor Author

PR approved by at least one committer and no changes requested.

@github-actions github-actions Bot added approved Indicates a PR has been approved by one committer. reviewed labels May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor Author

PR approved by anyone and no changes requested.

@yiguolei yiguolei merged commit 4578688 into branch-4.1 May 29, 2026
29 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants