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 create table error #4630

Merged
merged 12 commits into from
Apr 14, 2022
Merged

Conversation

Lloyd-Pottiger
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #4596

Problem Summary:

What is changed and how it works?

make sure Flen >= 0 before append.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Apr 12, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • JaySon-Huang
  • ywqzzy

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added needs-cherry-pick-release-5.0 PR which needs to be cherry-picked to release-5.0 release-note-none Denotes a PR that doesn't merit a release note. needs-cherry-pick-release-5.1 PR which needs to be cherry-picked to release-5.1 needs-cherry-pick-release-5.2 PR which needs to be cherry-picked to release-5.2 needs-cherry-pick-release-5.3 Type: Need cherry pick to release-5.3 needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.0 Type: Need cherry pick to release-6.0 size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 12, 2022
@Lloyd-Pottiger
Copy link
Contributor Author

Lloyd-Pottiger commented Apr 12, 2022

Two remaining problems:

  1. do we need to support unsigned data type?
  2. for the TODO in case TypeBit {}, the current behavior is in line with expectations.

@Lloyd-Pottiger
Copy link
Contributor Author

/run-all-tests

@Lloyd-Pottiger
Copy link
Contributor Author

/run-unit-test

2 similar comments
@Lloyd-Pottiger
Copy link
Contributor Author

/run-unit-test

@Lloyd-Pottiger
Copy link
Contributor Author

/run-unit-test

@sre-bot
Copy link
Collaborator

sre-bot commented Apr 12, 2022

Coverage for changed files

Filename                              Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Databases/test/gtest_database.cpp        2256               393    82.58%          19                 0   100.00%         666                 8    98.80%         722               368    49.03%
Storages/Transaction/TiDB.cpp             478               264    44.77%          45                13    71.11%         844               385    54.38%         334               148    55.69%
Storages/Transaction/TiDB.h                20                 7    65.00%          16                 3    81.25%          16                 3    81.25%           6                 6     0.00%
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                    2754               664    75.89%          80                16    80.00%        1526               396    74.05%        1062               522    50.85%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
17021      9515             44.10%    191865  96430        49.74%

full coverage report (for internal network access only)

@Lloyd-Pottiger
Copy link
Contributor Author

/cc @JaySon-Huang

@ti-chi-bot ti-chi-bot requested a review from JaySon-Huang April 12, 2022 11:05
@JaySon-Huang JaySon-Huang requested a review from JinheLin April 13, 2022 04:21
@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Apr 14, 2022
@ti-chi-bot
Copy link
Member

@Lloyd-Pottiger: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@sre-bot
Copy link
Collaborator

sre-bot commented Apr 14, 2022

Coverage for changed files

Filename                              Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Databases/test/gtest_database.cpp        2256               393    82.58%          19                 0   100.00%         729                 8    98.90%         722               368    49.03%
Storages/Transaction/TiDB.cpp             478               264    44.77%          45                13    71.11%         844               385    54.38%         334               148    55.69%
Storages/Transaction/TiDB.h                20                 7    65.00%          16                 3    81.25%          16                 3    81.25%           6                 6     0.00%
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                    2754               664    75.89%          80                16    80.00%        1589               396    75.08%        1062               522    50.85%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
17025      9512             44.13%    191976  96458        49.76%

full coverage report (for internal network access only)

@JaySon-Huang
Copy link
Contributor

/rebuild

@JaySon-Huang
Copy link
Contributor

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Apr 14, 2022

Coverage for changed files

Filename                              Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Databases/test/gtest_database.cpp        2256               393    82.58%          19                 0   100.00%         729                 8    98.90%         722               368    49.03%
Storages/Transaction/TiDB.cpp             478               264    44.77%          45                13    71.11%         844               385    54.38%         334               148    55.69%
Storages/Transaction/TiDB.h                20                 7    65.00%          16                 3    81.25%          16                 3    81.25%           6                 6     0.00%
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                    2754               664    75.89%          80                16    80.00%        1589               396    75.08%        1062               522    50.85%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
17025      9512             44.13%    191978  96456        49.76%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 51dd32f into pingcap:master Apr 14, 2022
ti-chi-bot pushed a commit to ti-chi-bot/tiflash that referenced this pull request Apr 14, 2022
@ti-chi-bot ti-chi-bot mentioned this pull request Apr 14, 2022
12 tasks
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #4649.

@ti-chi-bot ti-chi-bot mentioned this pull request Apr 14, 2022
12 tasks
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #4650.

@ti-chi-bot ti-chi-bot mentioned this pull request Apr 14, 2022
12 tasks
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #4651.

ti-chi-bot pushed a commit to ti-chi-bot/tiflash that referenced this pull request Apr 14, 2022
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #4652.

@ti-chi-bot ti-chi-bot mentioned this pull request Apr 14, 2022
12 tasks
ti-chi-bot pushed a commit to ti-chi-bot/tiflash that referenced this pull request Apr 14, 2022
@ti-chi-bot ti-chi-bot mentioned this pull request Apr 14, 2022
12 tasks
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #4653.

ti-chi-bot pushed a commit to ti-chi-bot/tiflash that referenced this pull request Apr 14, 2022
@ti-chi-bot ti-chi-bot mentioned this pull request Apr 14, 2022
12 tasks
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #4654.

ti-chi-bot added a commit that referenced this pull request Apr 14, 2022
ti-chi-bot added a commit that referenced this pull request Apr 25, 2022
ti-chi-bot added a commit that referenced this pull request Jun 16, 2022
ti-chi-bot added a commit that referenced this pull request Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cherry-pick-release-5.0 PR which needs to be cherry-picked to release-5.0 needs-cherry-pick-release-5.1 PR which needs to be cherry-picked to release-5.1 needs-cherry-pick-release-5.2 PR which needs to be cherry-picked to release-5.2 needs-cherry-pick-release-5.3 Type: Need cherry pick to release-5.3 needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.0 Type: Need cherry pick to release-6.0 release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fail to create table with some TiDB table info
5 participants