-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Enchancement](compatible) show dateV2/datetimeV2 to date/datetime #18358
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
Conversation
yiguolei
left a comment
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.
Add regression test please.
|
Do not changing |
| .addColumn(new Column("IndexKeysType", ScalarType.createVarchar(20))) | ||
| .addColumn(new Column("Field", ScalarType.createVarchar(20))) | ||
| .addColumn(new Column("Type", ScalarType.createVarchar(20))) | ||
| .addColumn(new Column("ColumnType", ScalarType.createVarchar(20))) |
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.
InternalType
| "", | ||
| column.getName(), | ||
| column.getOriginType().toString(), | ||
| column.getOriginType().toString(), |
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.
是不是跟213 行重复了
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.
是不是跟213 行重复了
不是,一个是替换后的type,一个是新加的InternalYype列
| List<List<String>> res = new ArrayList<>(); | ||
| for (List<String> row : rows) { | ||
| // show DATEV2/DATETIMEV2 to DATE/DATETIME for compatibility | ||
| if (row.get(1).length() >= 6 && row.get(1).substring(0, 6).equals("DATEV2")) { |
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.
why add these code?
yiguolei
left a comment
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
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
…pache#18358) show dateV2/datetimeV2 to date/datetime modify show create table modify desc table use desc table all to get real type from column ColumnType
Proposed changes
Issue Number: close #xxx
Problem summary
show dateV2/datetimeV2 to date/datetime
show create tabledesc tabledesc table allto get real type from columnColumnTypeChecklist(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...