-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[fix](partition) Incorrectly add partition to non-partitioned table #48121
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
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
ffbf6c2
to
da086f9
Compare
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 31637 ms
|
TPC-DS: Total hot run time: 184102 ms
|
ClickBench: Total hot run time: 30.36 s
|
da086f9
to
34d6a6b
Compare
34d6a6b
to
b771345
Compare
run buildall |
b771345
to
0e3293e
Compare
run buildall |
run feut |
TPC-H: Total hot run time: 32403 ms
|
TPC-DS: Total hot run time: 190811 ms
|
ClickBench: Total hot run time: 30.83 s
|
PR approved by at least one committer and no changes requested. |
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
…48121) Issue Number: close #48111 Related PR: #xxx ``` mysql> CREATE TABLE t ( -> id int null, -> k largeint null -> ) -> DISTRIBUTED BY HASH(`k`, `id`) BUCKETS 16 -> PROPERTIES ( -> "replication_num" = "1" -> ); Query OK, 0 rows affected (0.03 sec) mysql> alter table t add partition p1 values in ((1)); Query OK, 0 rows affected (0.03 sec) mysql> alter table t drop partition p1; ERROR 1105 (HY000): errCode = 2, detailMessage = Alter table [t] failed. Not a partitioned table ```
…48121) Issue Number: close #48111 Related PR: #xxx ``` mysql> CREATE TABLE t ( -> id int null, -> k largeint null -> ) -> DISTRIBUTED BY HASH(`k`, `id`) BUCKETS 16 -> PROPERTIES ( -> "replication_num" = "1" -> ); Query OK, 0 rows affected (0.03 sec) mysql> alter table t add partition p1 values in ((1)); Query OK, 0 rows affected (0.03 sec) mysql> alter table t drop partition p1; ERROR 1105 (HY000): errCode = 2, detailMessage = Alter table [t] failed. Not a partitioned table ```
…oned table #48121 (#48322) Cherry-picked from #48121 Co-authored-by: Uniqueyou <[email protected]>
…oned table #48121 (#48323) Cherry-picked from #48121 Co-authored-by: Uniqueyou <[email protected]>
…pache#48121) Issue Number: close apache#48111 Related PR: #xxx ``` mysql> CREATE TABLE t ( -> id int null, -> k largeint null -> ) -> DISTRIBUTED BY HASH(`k`, `id`) BUCKETS 16 -> PROPERTIES ( -> "replication_num" = "1" -> ); Query OK, 0 rows affected (0.03 sec) mysql> alter table t add partition p1 values in ((1)); Query OK, 0 rows affected (0.03 sec) mysql> alter table t drop partition p1; ERROR 1105 (HY000): errCode = 2, detailMessage = Alter table [t] failed. Not a partitioned table ```
…pache#48121) Issue Number: close apache#48111 Related PR: #xxx ``` mysql> CREATE TABLE t ( -> id int null, -> k largeint null -> ) -> DISTRIBUTED BY HASH(`k`, `id`) BUCKETS 16 -> PROPERTIES ( -> "replication_num" = "1" -> ); Query OK, 0 rows affected (0.03 sec) mysql> alter table t add partition p1 values in ((1)); Query OK, 0 rows affected (0.03 sec) mysql> alter table t drop partition p1; ERROR 1105 (HY000): errCode = 2, detailMessage = Alter table [t] failed. Not a partitioned table ```
…pache#48121) Issue Number: close apache#48111 Related PR: #xxx ``` mysql> CREATE TABLE t ( -> id int null, -> k largeint null -> ) -> DISTRIBUTED BY HASH(`k`, `id`) BUCKETS 16 -> PROPERTIES ( -> "replication_num" = "1" -> ); Query OK, 0 rows affected (0.03 sec) mysql> alter table t add partition p1 values in ((1)); Query OK, 0 rows affected (0.03 sec) mysql> alter table t drop partition p1; ERROR 1105 (HY000): errCode = 2, detailMessage = Alter table [t] failed. Not a partitioned table ```
What problem does this PR solve?
Issue Number: close #48111
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)