Skip to content

[Bug] Can't add partitons to a table which has "colocate_with" property #4753

Open
@wyndia

Description

@wyndia

Describe the bug

Version: Apache Doris 0.12.0-rc03

To Reproduce

  1. Create a table:
CREATE TABLE `test` (
                           `date` date,
                           `userid` varchar(128)
) ENGINE=OLAP
DUPLICATE KEY(`date`, `userid`)
PARTITION BY RANGE(`date`)()
DISTRIBUTED BY HASH(`userid`) BUCKETS 8
PROPERTIES (
               "colocate_with" = "test"
           );
  1. Try to add a partition:
ALTER TABLE test add PARTITION p1 VALUES [("2020-10-15"), ("2020-10-16"));
  1. See the error:
ERROR 1064 (HY000): Unexpected exception: null

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/catalogIssues or PRs related to catalog managementkind/fixCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions