Skip to content
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

[Bug]: HASH PARTITIONING can use VALUES LESS THAN AND VALUES IN in partition definition #18874

Open
1 task done
aressu1985 opened this issue Sep 20, 2024 · 0 comments
Open
1 task done
Assignees
Labels
kind/bug Something isn't working severity/s0 Extreme impact: Cause the application to break down and seriously affect the use
Milestone

Comments

@aressu1985
Copy link
Contributor

aressu1985 commented Sep 20, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

afd7c53

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

MO:
mysql> CREATE TABLE t1 (
-> a int not null,
-> b int not null,
-> c int not null,
-> primary key(a,b))
-> partition by hash (a)
-> partitions 2
-> (partition x1 values less than (4),
-> partition x2 values less than (5));
Query OK, 0 rows affected (0.08 sec)

mysql> CREATE TABLE t1 (
-> a int not null,
-> b int not null,
-> c int not null,
-> primary key(a,b))
-> partition by hash (a)
-> partitions 2
-> (partition x1 values in (4),
-> partition x2 values in (5));
Query OK, 0 rows affected (0.06 sec)

MYSQL:
mysql> CREATE TABLE t1 (
-> a int not null,
-> b int not null,
-> c int not null,
-> primary key(a,b))
-> partition by hash (a)
-> partitions 2
-> (partition x1 values less than (4),
-> partition x2 values less than (5));
ERROR 1480 (HY000): Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition

mysql> CREATE TABLE t1 (
-> a int not null,
-> b int not null,
-> c int not null,
-> primary key(a,b))
-> partition by hash (a)
-> partitions 2
-> (partition x1 values in (4),
-> partition x2 values in (5));
ERROR 1480 (HY000): Only LIST PARTITIONING can use VALUES IN in partition definition

Expected Behavior

No response

Steps to Reproduce

CREATE TABLE t1 (
a int not null,
b int not null,
c int not null,
primary key(a,b))
partition by hash (a)
partitions 2
(partition x1 values less than (4),
 partition x2 values less than (5));

Additional information

No response

@aressu1985 aressu1985 added kind/bug Something isn't working needs-triage severity/s0 Extreme impact: Cause the application to break down and seriously affect the use labels Sep 20, 2024
@aressu1985 aressu1985 added this to the 1.3.0 milestone Sep 20, 2024
@aressu1985 aressu1985 changed the title [Bug]: HASH PARTITIONING can use VALUES LESS THAN in partition definition [Bug]: HASH and LIST PARTITIONING can use VALUES LESS THAN in partition definition Sep 20, 2024
@aressu1985 aressu1985 changed the title [Bug]: HASH and LIST PARTITIONING can use VALUES LESS THAN in partition definition [Bug]: HASH PARTITIONING can use VALUES LESS THAN AND VALUES IN in partition definition Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working severity/s0 Extreme impact: Cause the application to break down and seriously affect the use
Projects
None yet
Development

No branches or pull requests

3 participants