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

normalize and generate digest at same time #215

Merged
merged 3 commits into from
Feb 27, 2019
Merged

normalize and generate digest at same time #215

merged 3 commits into from
Feb 27, 2019

Conversation

lysu
Copy link
Collaborator

@lysu lysu commented Feb 20, 2019

What problem does this PR solve?

in previous PR, we add two method Normalize / DigestHash, but for real tidb's usage, it's better to general normalized sql and digest at some time, and cache it into queryCtx and only do it one-pass

What is changed and how it works?

add a new overwrite method ---- NormalizeDigest and also remove useless lex.reset.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Side effects

  • N/A

Related changes

  • N/A

This change is Reviewable

@tiancaiamao
Copy link
Collaborator

LGTM

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@kennytm kennytm added status/LGT2 LGT2 and removed status/LGT1 LGT1 labels Feb 23, 2019
@lysu lysu merged commit 9aec15d into pingcap:master Feb 27, 2019
@lysu lysu deleted the normalize-and-digest-at-same-time branch February 27, 2019 06:31
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.

4 participants