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 key work node_id && node_state #263

Merged
merged 7 commits into from
Mar 27, 2019

Conversation

WangXiangUSTC
Copy link
Contributor

What problem does this PR solve?

fix issue pingcap/tidb#9910
treat node_id and node_stats as key work

What is changed and how it works?

move pump drainer node_id node_stats to NotKeywordToken

Check List

Tests

  • Manual test (create table, use pump drainer node_id node_stats as column name)

Related changes

  • Need to cherry-pick to the release branch

@WangXiangUSTC WangXiangUSTC changed the title fix fix key work node_id && node_stats Mar 27, 2019
@WangXiangUSTC WangXiangUSTC added the type/bug-fix fix bug label Mar 27, 2019
@kennytm kennytm changed the title fix key work node_id && node_stats fix key word node_id && node_stats Mar 27, 2019
@kennytm
Copy link
Contributor

kennytm commented Mar 27, 2019

PTAL @zimulala

@kennytm kennytm changed the title fix key word node_id && node_stats fix key work node_id && node_state Mar 27, 2019
parser.y Outdated Show resolved Hide resolved
@@ -267,7 +265,7 @@ import (
zerofill "ZEROFILL"
natural "NATURAL"

/* The following tokens belong to UnReservedKeyword. */
/* The following tokens belong to UnReservedKeyword. Notice: make sure these tokens are contained in UnReservedKeyword. */
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 So turns out this is already checked in consistent_test.go

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤔but it don't take effect when 'node_id' not in keyword list, I don't know why

Copy link
Contributor

Choose a reason for hiding this comment

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

Only put node_id in TiDBKeyword part (or other special parts) can take effect.

parser.y Outdated Show resolved Hide resolved
parser.y Outdated Show resolved Hide resolved
Copy link
Contributor

@zimulala zimulala left a comment

Choose a reason for hiding this comment

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

LGTM

@tiancaiamao
Copy link
Collaborator

LGTM

@tiancaiamao tiancaiamao merged commit cc00daf into pingcap:master Mar 27, 2019
@WangXiangUSTC WangXiangUSTC deleted the xiang/node_id branch March 27, 2019 11:50
tiancaiamao pushed a commit to tiancaiamao/parser that referenced this pull request Apr 27, 2021
lyonzhi pushed a commit to lyonzhi/parser that referenced this pull request Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants