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

model: add functionality to check if a base table #1080

Merged
merged 4 commits into from Dec 3, 2020
Merged

model: add functionality to check if a base table #1080

merged 4 commits into from Dec 3, 2020

Conversation

ghost
Copy link

@ghost ghost commented Nov 9, 2020

What problem does this PR solve?

This will be used in pingcap/tidb#20880

I added a new function instead of checking for not a sequence or a view, because I think there are other cases that need this that may currently only test for not a view, but should also test for not a sequence.

What is changed and how it works?

New function to safely test for is a table.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Side effects

  • Increased code complexity

Related changes

  • Need to cherry-pick to the release branch

Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

Rest LGTM

model/model_test.go Outdated Show resolved Hide resolved
@ti-srebot ti-srebot added the status/LGT1 LGT1 label Nov 9, 2020
@kennytm kennytm removed the status/LGT1 LGT1 label Nov 9, 2020
Co-authored-by: kennytm <kennytm@gmail.com>
@kennytm kennytm added the status/LGT1 LGT1 label Nov 9, 2020
Copy link
Contributor

@AilinKid AilinKid left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot removed the status/LGT1 LGT1 label Dec 3, 2020
@ti-srebot ti-srebot added the status/LGT2 LGT2 label Dec 3, 2020
@tangenta tangenta merged commit 1bbb0bf into pingcap:master Dec 3, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants