-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Fix] (array-type) add the supported sub-type and regression #10824
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
6e8dec1 to
5b83000
Compare
| if (!type.getPrimitiveType().isIntegerType() | ||
| && !type.getPrimitiveType().isCharFamily()) { | ||
| throw new AnalysisException("Array column just support INT/VARCHAR sub-type"); | ||
| && !type.getPrimitiveType().isCharFamily() |
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.
use Type.getArraySubTypes() to check nested type of array.
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.
The return type of 'Type.getArraySubTypes() ' is ArrayList.
But here the 'type' is the sub-type of array, I think no need use 'getArraySubTypes()' again.
b919920 to
b7785e8
Compare
2.add regression test for the supported sub-type
xy720
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
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
LGTM |
1.This pr is used for adding the supported sub-type for array which has been modified in apache#9916 2.add regression test for the supported sub-type Co-authored-by: hucheng01 <hucheng01@baidu.com>
1.This pr is used for adding the supported sub-type for array which has been modified in apache#9916 2.add regression test for the supported sub-type Co-authored-by: hucheng01 <hucheng01@baidu.com>
Proposed changes
2.Issue Number: close #7570
Problem Summary:
Describe the overview of 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...