-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: Support List default partition (#41537)
close #20679
- Loading branch information
Showing
29 changed files
with
12,278 additions
and
8,262 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
br/tests/lightning_partitioned-table/data/partitioned.defaultlist-schema.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
create table `defaultlist` (a int, b varchar(16), KEY key_b (`b`)) partition by list(a) (partition p1 values in (1,4,8),partition p2 values in (32,default), partition p3 values in (262144,65536)); |
10 changes: 10 additions & 0 deletions
10
br/tests/lightning_partitioned-table/data/partitioned.defaultlist.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
insert into defaultlist values | ||
(268435456, '268435456'), | ||
(1, 'adgagdadgagag'), | ||
(262144, 'gadgagaha'), | ||
(32, '32'), | ||
(4, 'hahaha'), | ||
(65536, 'luck dog'), | ||
(8388608, 'heyhey'), | ||
(0, '999'); | ||
|
1 change: 1 addition & 0 deletions
1
br/tests/lightning_partitioned-table/data/partitioned.list-schema.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
create table `list` (a int, b varchar(16), KEY key_b (`b`)) partition by list(a) (partition p1 values in (1,4,8),partition p2 values in (32,8388608,268435456), partition p3 values in (262144,0,65536)); |
10 changes: 10 additions & 0 deletions
10
br/tests/lightning_partitioned-table/data/partitioned.list.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
insert into list values | ||
(268435456, '268435456'), | ||
(1, 'adgagdadgagag'), | ||
(262144, 'gadgagaha'), | ||
(32, '32'), | ||
(4, 'hahaha'), | ||
(65536, 'luck dog'), | ||
(8388608, 'heyhey'), | ||
(0, '999'); | ||
|
1 change: 1 addition & 0 deletions
1
br/tests/lightning_partitioned-table/data/partitioned.range-schema.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
create table `range` (a int, b varchar(16), KEY key_b (`b`)) partition by range(a) (partition pNeg values less than (0), partition pMax values less than (maxvalue)); |
10 changes: 10 additions & 0 deletions
10
br/tests/lightning_partitioned-table/data/partitioned.range.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
insert into range values | ||
(268435456, '268435456'), | ||
(1, 'adgagdadgagag'), | ||
(262144, 'gadgagaha'), | ||
(32, '32'), | ||
(4, 'hahaha'), | ||
(65536, 'luck dog'), | ||
(8388608, 'heyhey'), | ||
(0, '999'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.