meta, planner: add the UnsignedFlag to the type of _tidb_commit_ts#66656
Conversation
|
Review Complete Findings: 1 issues ℹ️ Learn more details on Pantheon AI. |
📝 WalkthroughWalkthroughAdded the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pkg/meta/model/column.go (1)
378-392:⚠️ Potential issue | 🟠 MajorAdd unit test for NewExtraCommitTSColInfo() in column_test.go following the existing pattern.
This new metadata column constructor needs test coverage. Add a test similar to the existing one for
NewExtraPhysTblIDColInfo()at line 103-104 ofpkg/meta/model/column_test.goto verify the ColumnInfo is initialized correctly with the expected type and flags (TypeLonglong + UnsignedFlag).🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@pkg/meta/model/column.go` around lines 378 - 392, Add a unit test in pkg/meta/model/column_test.go mirroring the existing test for NewExtraPhysTblIDColInfo: call NewExtraCommitTSColInfo(), assert the returned *ColumnInfo has ID == ExtraCommitTSID and Name == ExtraCommitTSName, and verify its type and flags are set to mysql.TypeLonglong with mysql.UnsignedFlag (also check flen/decimal/charset/collate if following the same assertions pattern used by the NewExtraPhysTblIDColInfo test). Use the same test structure and helper assertions as the existing test for NewExtraPhysTblIDColInfo to ensure consistent coverage.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@pkg/meta/model/column.go`:
- Around line 378-392: Add a unit test in pkg/meta/model/column_test.go
mirroring the existing test for NewExtraPhysTblIDColInfo: call
NewExtraCommitTSColInfo(), assert the returned *ColumnInfo has ID ==
ExtraCommitTSID and Name == ExtraCommitTSName, and verify its type and flags are
set to mysql.TypeLonglong with mysql.UnsignedFlag (also check
flen/decimal/charset/collate if following the same assertions pattern used by
the NewExtraPhysTblIDColInfo test). Use the same test structure and helper
assertions as the existing test for NewExtraPhysTblIDColInfo to ensure
consistent coverage.
|
/retest |
Co-authored-by: Chao Wang <cclcwangchao@hotmail.com>
|
Review Complete Findings: 1 issues ℹ️ Learn more details on Pantheon AI. |
[LGTM Timeline notifier]Timeline:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #66656 +/- ##
================================================
- Coverage 77.6714% 77.5729% -0.0986%
================================================
Files 2008 1929 -79
Lines 549230 537917 -11313
================================================
- Hits 426595 417278 -9317
+ Misses 120964 120621 -343
+ Partials 1671 18 -1653
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/retest |
1 similar comment
|
/retest |
|
/hold |
|
Review Complete Findings: 0 issues ℹ️ Learn more details on Pantheon AI. |
UnsignedFlag to the type of _tidb_commit_tsUnsignedFlag to the type of _tidb_commit_ts
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lcwangchao, winoros, wjhuang2016, xhebox The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |
|
/retest |
What problem does this PR solve?
Issue Number: ref #64281
What changed and how does it work?
As the title says.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
Summary by CodeRabbit