Skip to content

[feature](array-type) Create table with nested array type. - #8003

Merged
morningman merged 1 commit into
apache:array-typefrom
adonis0147:array-type-dev
Feb 16, 2022
Merged

[feature](array-type) Create table with nested array type.#8003
morningman merged 1 commit into
apache:array-typefrom
adonis0147:array-type-dev

Conversation

@adonis0147

Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close#8002 .

Problem Summary:

Please refer to #8002 .

Checklist(Required)

  1. Does it affect the original behavior: No.
  2. Has unit tests been added: Yes.
  3. Has document been added or modified: No Need.
  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...

@Doris-Extras

Doris-Extras commented Feb 11, 2022

Copy link
Copy Markdown
Contributor

mysql> create table array_type_table(k1 INT, k2 Array<Array>) duplicate key (k1)
-> distributed by hash(k1) buckets 1 properties('replication_num' = '1');

why not use create table array_type_table(k1 INT, k2 Array <int> ) ?

@adonis0147

adonis0147 commented Feb 11, 2022

Copy link
Copy Markdown
ContributorAuthor

Array<int> is an array with one dimension.
Array<Array<int>> is an array with two dimensions.

Like multi-dimensional arrays in ClickHouse.

@yiguolei

Copy link
Copy Markdown
Contributor

Array<int> is an array with one dimension. Array<Array<int>> is an array with two dimensions.

Like multi-dimensional arrays in ClickHouse.

I see. Great.

@morningmanmorningman changed the title [feature][array-type] Create table with nested array type.[feature](array-type) Create table with nested array type.Feb 16, 2022

@morningmanmorningman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Feb 16, 2022
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@morningman
morningman merged commit 9253a78 into apache:array-typeFeb 16, 2022
morningman pushed a commit that referenced this pull request Feb 22, 2022
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
morningman pushed a commit that referenced this pull request Mar 1, 2022
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
adonis0147 added a commit to adonis0147/doris that referenced this pull request Mar 1, 2022
…e#8003)
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
morningman pushed a commit to morningman/doris that referenced this pull request Mar 2, 2022
…e#8003)
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
morningman pushed a commit that referenced this pull request Mar 7, 2022
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
morningman pushed a commit that referenced this pull request Mar 10, 2022
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
morningman pushed a commit that referenced this pull request Mar 10, 2022
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
morningman pushed a commit that referenced this pull request Mar 15, 2022
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
morningman pushed a commit that referenced this pull request Mar 21, 2022
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
adonis0147 added a commit to adonis0147/doris that referenced this pull request Mar 22, 2022
…e#8003)
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
adonis0147 added a commit to adonis0147/doris that referenced this pull request Mar 22, 2022
…e#8003)
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
morningman pushed a commit that referenced this pull request Mar 22, 2022
#8575)
```
create table array_type_table(k1 INT, k2 Array<Array<int>>) duplicate key (k1)
distributed by hash(k1) buckets 1 properties('replication_num' = '1');
```
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@adonis0147@Doris-Extras@yiguolei@morningman