-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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) modify varchar default length 1 to 65533 #21302
Conversation
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
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
@hubgeter code format is wrong, pls fix it, |
9e63d95
to
311bb3f
Compare
应该OK了吧😭 |
run buildall |
run p0 |
run ut |
run buildall |
run ut |
6b3ad80
to
4f98174
Compare
run buildall |
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
PR approved by at least one committer and no changes requested. |
LGTM |
*modify archer default length 1 to varchar.max.length , when create table.* ```mysql create table t2 ( k1 CHAR, K2 CHAR(10) , K3 VARCHAR , K4 VARCHAR(1024) ) duplicate key (k1) distributed by hash(k1) buckets 1 properties('replication_num' = '1'); desc t2; ``` | Field | Type | Null | Key | Default | Extra | | -- |--|--| -| -| -| | k1 | CHAR(1) | Yes | true | NULL | | | K2 | CHAR(10) | Yes | false | NULL | NONE | | K3 | VARCHAR(65533) | Yes | false | NULL | NONE | | K4 | VARCHAR(1024) | Yes | false | NULL | NONE |
…21302) *modify archer default length 1 to varchar.max.length , when create table.* ```mysql create table t2 ( k1 CHAR, K2 CHAR(10) , K3 VARCHAR , K4 VARCHAR(1024) ) duplicate key (k1) distributed by hash(k1) buckets 1 properties('replication_num' = '1'); desc t2; ``` | Field | Type | Null | Key | Default | Extra | | -- |--|--| -| -| -| | k1 | CHAR(1) | Yes | true | NULL | | | K2 | CHAR(10) | Yes | false | NULL | NONE | | K3 | VARCHAR(65533) | Yes | false | NULL | NONE | | K4 | VARCHAR(1024) | Yes | false | NULL | NONE |
This is only for branch-2.0 related to apache#21754 and apache#21302
Proposed changes
modify archer default length 1 to varchar.max.length , when create table.
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...