Skip to content

Conversation

@carlvinhust2012
Copy link
Contributor

@carlvinhust2012 carlvinhust2012 commented Jul 14, 2022

Proposed changes

  1. This pr is used for adding the supported sub-type for array which has been modified in [Feature-wip] support datev2 #9916.

2.Issue Number: close #7570

Problem Summary:

Describe the overview of changes.

Checklist(Required)

  1. Does it affect the original behavior: (No)
  2. Has unit tests been added: (No)
  3. Has document been added or modified: (No)
  4. Does it need to update dependencies: (No)
  5. Are there any changes that cannot be rolled back: (No)

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 the area/planner Issues or PRs related to the query planner label Jul 14, 2022
@carlvinhust2012 carlvinhust2012 changed the title [Fix] (array-type) add the supported sub-type for array [Fix] (array-type) add the supported sub-type and regression test for array Jul 14, 2022
@carlvinhust2012 carlvinhust2012 changed the title [Fix] (array-type) add the supported sub-type and regression test for array [Fix] (array-type) add the supported sub-type and regression for array Jul 14, 2022
@carlvinhust2012 carlvinhust2012 changed the title [Fix] (array-type) add the supported sub-type and regression for array [Fix] (array-type) add the supported sub-type and regression Jul 14, 2022
@carlvinhust2012 carlvinhust2012 force-pushed the bug-fix branch 3 times, most recently from 6e8dec1 to 5b83000 Compare July 15, 2022 03:54
@xy720 xy720 added area/array-type Issues or PRs related to array type labels Jul 18, 2022
if (!type.getPrimitiveType().isIntegerType()
&& !type.getPrimitiveType().isCharFamily()) {
throw new AnalysisException("Array column just support INT/VARCHAR sub-type");
&& !type.getPrimitiveType().isCharFamily()
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@carlvinhust2012 carlvinhust2012 force-pushed the bug-fix branch 4 times, most recently from b919920 to b7785e8 Compare July 20, 2022 06:16
2.add regression test for the supported sub-type
Copy link
Member

@xy720 xy720 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 20, 2022
@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.

@cambyzju
Copy link
Contributor

LGTM

@xy720 xy720 merged commit 5f6f35e into apache:master Jul 21, 2022
miswujian pushed a commit to miswujian/doris that referenced this pull request Jul 28, 2022
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>
whutpencil pushed a commit to whutpencil/incubator-doris that referenced this pull request Jul 29, 2022
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>
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/array-type Issues or PRs related to array type area/planner Issues or PRs related to the query planner kind/test reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Roadmap] Support Array Type(Q1)

3 participants