-
Notifications
You must be signed in to change notification settings - Fork 411
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
ddl: Remove field "comment" from TiDB::TableInfo #9339
Conversation
45b931f
to
28fd8d9
Compare
28fd8d9
to
a8eb0d2
Compare
3e3e6e5
to
20e5abf
Compare
: id(0) | ||
, state(TiDB::SchemaState::StateNone) | ||
, index_type(0) | ||
, is_unique(true) | ||
, is_primary(true) | ||
, is_invisible(true) | ||
, is_global(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove because it is conflict with those default value defined in TiDB.h
tiflash/dbms/src/TiDB/Schema/TiDB.h
Lines 241 to 260 in 20e5abf
struct IndexInfo | |
{ | |
IndexInfo() = default; | |
explicit IndexInfo(Poco::JSON::Object::Ptr json); | |
Poco::JSON::Object::Ptr getJSONObject() const; | |
void deserialize(Poco::JSON::Object::Ptr json); | |
Int64 id = -1; | |
String idx_name; | |
std::vector<IndexColumnInfo> idx_cols; | |
SchemaState state = StatePublic; | |
Int32 index_type = -1; | |
bool is_unique = false; | |
bool is_primary = false; | |
bool is_invisible = false; | |
bool is_global = false; | |
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CalvinNeo, JinheLin 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 |
What problem does this PR solve?
Issue Number: close #9497
Problem Summary:
The "comment" field in TableInfo is useless for TiFlash. And also it could contain some user info of the table def. Removing them from TiFlash is more reasonable.
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note