Skip to content

[Feature] add list partition support#5529

Merged
morningman merged 6 commits intoapache:masterfrom
qidaye:branch_list_partition
Apr 24, 2021
Merged

[Feature] add list partition support#5529
morningman merged 6 commits intoapache:masterfrom
qidaye:branch_list_partition

Conversation

@qidaye
Copy link
Contributor

@qidaye qidaye commented Mar 17, 2021

Proposed changes

add list partition support

Types of changes

What types of changes does your code introduce to Doris?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)
  • Code refactor (Modify the code structure, format the code, etc...)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have created an issue on (Fix [Proposal] Support of LIST partition  #5402) and described the bug/feature there in detail
  • Compiling and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • If these changes need document changes, I have updated the document
  • Any dependent changes have been merged

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...

uint32_t* dist_hashes) const {
auto it = _partitions_map->upper_bound(tuple);
const TOlapTablePartition& t_part = _t_param.partitions[0];
decltype(_partitions_map->find(tuple)) it;
Copy link
Contributor

Choose a reason for hiding this comment

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

we could use std::map<x,x>::iterator instead of this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

bool OlapTablePartitionParam::find_tablet(Tuple* tuple, const OlapTablePartition** partition,
uint32_t* dist_hashes) const {
auto it = _partitions_map->upper_bound(tuple);
const TOlapTablePartition& t_part = _t_param.partitions[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

check _t_param.partitions.size() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doris creates at least one partition (unpartitioned table) for the olap table, so here _t_param.partitions.size() is at least 1, no need to worry about.

@EmmyMiao87 EmmyMiao87 self-assigned this Mar 17, 2021
@EmmyMiao87 EmmyMiao87 added area/catalog Issues or PRs related to catalog management kind/feature Categorizes issue or PR as related to a new feature. labels Mar 17, 2021
@qidaye qidaye force-pushed the branch_list_partition branch from 31c9172 to 449ae69 Compare April 19, 2021 06:31
morningman
morningman previously approved these changes Apr 20, 2021
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman added the approved Indicates a PR has been approved by one committer. label Apr 20, 2021
@morningman
Copy link
Contributor

morningman commented Apr 20, 2021

There is some thing to do with #5667.
Better to suppor it after #5667 being merged.

@qidaye
Copy link
Contributor Author

qidaye commented Apr 20, 2021

There is some thing to do with #5667.
Better to suppor it after #5667 being merged.

ok, I'll check it.

qijianliang01 and others added 5 commits April 23, 2021 10:23
Change-Id: Ie0b5c1b518bdd4f27e0eedc08dd71e8b1048e2ee
…conflict exception

Change-Id: I42dc64541454b72389d1bc2d1f2fe455f918652e
Change-Id: Id2ef6d3aa895b4bb34e710f2e6ac99a3d74389a6
…st partition table.

Change-Id: I9ff5fa4bc1bde35f4e10f3baecc14f1489eaa2f2
Change-Id: I35900b2e3ff4d7a78b5785751996e6563c919f9d
@qidaye
Copy link
Contributor Author

qidaye commented Apr 23, 2021

There is some thing to do with #5667.
Better to suppor it after #5667 being merged.

ok, I'll check it.

done

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman merged commit de87f4a into apache:master Apr 24, 2021
@morningman morningman mentioned this pull request Apr 25, 2021
10 tasks
EmmyMiao87 pushed a commit to EmmyMiao87/incubator-doris that referenced this pull request May 14, 2021
[doris-1077]

Add list partition support

Change-Id: I08786b16d262638ad7192e0fd3fa6f2251ad6e65
@morningman morningman mentioned this pull request Oct 10, 2021
Hastyshell pushed a commit to Hastyshell/doris that referenced this pull request Nov 12, 2025
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/catalog Issues or PRs related to catalog management kind/feature Categorizes issue or PR as related to a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] Support of LIST partition

4 participants