-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Improvement] enhance show data types stmt #18831
Conversation
List<String> row = new ArrayList<>(); | ||
if (type.isAvailableInDdl()) { | ||
if (type.isDecimalV2Type()) { | ||
row.add("DECIMAL"); |
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.
We should not handle type name here, should be handled in PrimitiveType too.
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. |
run buildall |
TeamCity pipeline, clickbench performance test result: |
run buildall |
2 similar comments
run buildall |
run buildall |
run buildall |
1 similar comment
run buildall |
run p1 |
run buildp0 |
1 similar comment
run buildp0 |
run buildp1 |
run buildp0 |
run buildp1 |
run buildp0p1 |
run buildp1 |
1 similar comment
run buildp1 |
run buildall |
run buildp1 |
run buildall |
run buildp0 |
run buildall |
run buildp0 |
run buildall |
run buildp0 |
run p0 |
run buildp0 |
run buildall |
run p0 |
run buildp0 |
6 similar comments
run buildp0 |
run buildp0 |
run buildp0 |
run buildp0 |
run buildp0 |
run buildp0 |
run buildp0 |
1 similar comment
run buildp0 |
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. |
enhance show data types stmt
mysql> show data types;
+----------------+------+
| TypeName | Size |
+----------------+------+
| ARRAY | 32 |
| BIGINT | 8 |
| BITMAP | 16 |
| BOOLEAN | 1 |
| CHAR | 16 |
| DATE | 16 |
| DATETIME | 16 |
| DATETIMEV2 | 8 |
| DATEV2 | 4 |
| DECIMAL128 | 16 |
| DECIMAL32 | 4 |
| DECIMAL64 | 8 |
| DECIMALV2 | 16 |
| DOUBLE | 8 |
| FLOAT | 4 |
| HLL | 16 |
| INT | 4 |
| JSONB | 16 |
| LARGEINT | 16 |
| MAP | 24 |
| QUANTILE_STATE | 16 |
| SMALLINT | 2 |
| STRING | 16 |
| TINYINT | 1 |
| VARCHAR | 16 |
+----------------+------+
25 rows in set (0.01 sec)
Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)
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...