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) modify varchar default length 1 to 65533 #21302

Merged
merged 5 commits into from
Jul 10, 2023

Conversation

hubgeter
Copy link
Contributor

Proposed changes

modify archer default length 1 to varchar.max.length , when create table.

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

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...

@github-actions github-actions bot added area/planner Issues or PRs related to the query planner kind/docs Categorizes issue or PR as related to documentation. kind/test labels Jun 28, 2023
morningman
morningman previously approved these changes Jun 28, 2023
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jun 28, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@yiguolei
Copy link
Contributor

@hubgeter code format is wrong, pls fix it,

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Jun 29, 2023
@hubgeter
Copy link
Contributor Author

应该OK了吧😭

@morningman
Copy link
Contributor

run buildall

@yiguolei
Copy link
Contributor

yiguolei commented Jul 9, 2023

run p0

@yiguolei
Copy link
Contributor

yiguolei commented Jul 9, 2023

run ut

@hubgeter
Copy link
Contributor Author

hubgeter commented Jul 9, 2023

run buildall

@hubgeter
Copy link
Contributor Author

run ut

@hubgeter
Copy link
Contributor Author

run buildall

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 10, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@kaka11chen
Copy link
Contributor

LGTM

@morningman morningman merged commit 202a5c6 into apache:master Jul 10, 2023
24 of 27 checks passed
@xiaokang xiaokang added dev/2.0.0-merged and removed dev/2.0.0 2.0.0 release labels Jul 11, 2023
xiaokang pushed a commit that referenced this pull request Jul 11, 2023
*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  |
xiaokang added a commit that referenced this pull request Jul 14, 2023
BiteTheDDDDt pushed a commit to BiteTheDDDDt/incubator-doris that referenced this pull request Jul 14, 2023
…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  |
morningman added a commit to morningman/doris that referenced this pull request Aug 10, 2023
This is only for branch-2.0
related to apache#21754 and apache#21302
@xiaokang xiaokang mentioned this pull request Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. area/planner Issues or PRs related to the query planner dev/2.0.1-merged kind/behavior-changed kind/docs Categorizes issue or PR as related to documentation. kind/test reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants