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

executor,infoschema: Change column type on information_schema.CLUSTER_INFO #29771

Merged
merged 18 commits into from
Nov 22, 2023

Conversation

dveeden
Copy link
Contributor

@dveeden dveeden commented Nov 15, 2021

Issue Number: close #45221

Related: #24858

What problem does this PR solve?

The START_TIME column of information_schema.CLUSTER_INFO was a VARCHAR with values like 2021-11-15T07:32:19+01:00. This changes the column to be a MySQL datetime format.

What is changed and how it works?

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

The type of the `START_TIME` column of the `CLUSTER_INFO` table in the `information_schema` was changed from a `VARCHAR` to `DATETIME`.

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Nov 15, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • morgo

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 release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 15, 2021
@dveeden
Copy link
Contributor Author

dveeden commented Dec 10, 2021

/cc @yzwqf @crazycs520

@ti-chi-bot
Copy link
Member

@dveeden: GitHub didn't allow me to request PR reviews from the following users: yzwqf.

Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @yzwqf @crazycs520

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 kubernetes/test-infra repository.

@dveeden
Copy link
Contributor Author

dveeden commented Dec 10, 2021

/cc @morgo

infoschema/tables.go Outdated Show resolved Hide resolved
@dveeden dveeden requested a review from a team as a code owner December 16, 2021 06:40
@ti-chi-bot ti-chi-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 16, 2021
@dveeden dveeden force-pushed the cluster_info__start_time__native branch from 98960d2 to 3b7c155 Compare December 16, 2021 06:40
@ti-chi-bot ti-chi-bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 16, 2021
Copy link
Contributor

@morgo morgo left a comment

Choose a reason for hiding this comment

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

LGTM. I think the CI failure is unrelated

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 16, 2021
Copy link
Member

@wjhuang2016 wjhuang2016 left a comment

Choose a reason for hiding this comment

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

Is it ok to remove the suffix +08:00?

@dveeden
Copy link
Contributor Author

dveeden commented Dec 17, 2021

Is it ok to remove the suffix +08:00?

I think it is. Do you see any problem with that?

@wjhuang2016
Copy link
Member

Is it ok to remove the suffix +08:00?

I think it is. Do you see any problem with that?

I'm not sure, maybe we should request other people to review it.

@dveeden
Copy link
Contributor Author

dveeden commented Dec 20, 2021

@wjhuang2016 Any suggestions for additional reviewers?

Copy link
Contributor

@mjonss mjonss left a comment

Choose a reason for hiding this comment

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

Is it possible to create a test case for this PR?

@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. approved labels Nov 17, 2023
@ti-chi-bot ti-chi-bot bot deleted a comment from ti-chi-bot Nov 17, 2023
@ti-chi-bot ti-chi-bot bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 17, 2023
Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Merging #29771 (ddbe621) into master (3d176fc) will increase coverage by 1.5331%.
Report is 11 commits behind head on master.
The diff coverage is 100.0000%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #29771        +/-   ##
================================================
+ Coverage   71.1018%   72.6349%   +1.5330%     
================================================
  Files          1365       1389        +24     
  Lines        404348     414551     +10203     
================================================
+ Hits         287499     301109     +13610     
+ Misses        96883      94539      -2344     
+ Partials      19966      18903      -1063     
Flag Coverage Δ
integration 43.9944% <0.0000%> (?)
unit 71.1115% <100.0000%> (+0.0096%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 53.9874% <ø> (ø)
parser ∅ <ø> (∅)
br 48.3831% <ø> (-4.7056%) ⬇️

@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 17, 2023
@dveeden
Copy link
Contributor Author

dveeden commented Nov 17, 2023

/retest

@dveeden
Copy link
Contributor Author

dveeden commented Nov 17, 2023

/test unit-test

Copy link

tiprow bot commented Nov 17, 2023

@dveeden: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test tiprow_fast_test

Use /test all to run all jobs.

In response to this:

/test unit-test

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 kubernetes/test-infra repository.

@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 20, 2023
Copy link

ti-chi-bot bot commented Nov 22, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: crazycs520, morgo, wjhuang2016

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 22, 2023
Copy link

ti-chi-bot bot commented Nov 22, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-11-17 12:44:38.981266244 +0000 UTC m=+4425876.568376391: ☑️ agreed by wjhuang2016.
  • 2023-11-22 07:48:01.896411016 +0000 UTC m=+390510.561637208: ☑️ agreed by crazycs520.

Copy link

ti-chi-bot bot commented Nov 22, 2023

@dveeden: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-br-integration-test 54d5206 link true /test pull-br-integration-test
idc-jenkins-ci-tidb/unit-test ddbe621 link unknown /test unit-test

Full PR test history. Your PR dashboard.

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 kubernetes/test-infra repository. I understand the commands that are listed here.

@dveeden
Copy link
Contributor Author

dveeden commented Nov 22, 2023

/retest

@ti-chi-bot ti-chi-bot bot merged commit 7d1000c into pingcap:master Nov 22, 2023
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test Indicates a PR is ready to be tested. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLUSTER_INFO START_TIME column doesn't have native time format
7 participants