Skip to content

Commit 5c3473b

Browse files
Fix RANGE COLUMNS row matching criterion
For example: create table t1 (c1 int, c2 int) partition by range columns (c1, c2) ( partition p0 values less than (1, 2), partition p1 values less than (2, 1) ); insert into t1 values (0, 1), (1, 0), (1, 1), (1, 2); select * from t1 partition (p0); c1 c2 0 1 1 0 1 1 select * from t1 partition (p1); c1 c2 1 2 drop table t1;
1 parent 7fec7ff commit 5c3473b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server-usage/partitioning-tables/partitioning-types/range-columns-and-list-columns-partitioning-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To determine which partition should contain a row, all specified columns are com
4545

4646
With `LIST COLUMNS`, a row matches a partition if all row values are identical to the specified values. At most one partition can match the row.
4747

48-
With `RANGE COLUMNS`, a row matches a partition if all row values are less than the specified values. The first partition that matches the row values are used.
48+
With `RANGE COLUMNS`, a row matches a partition if it is less than the specified value tuple in lexicographic order. The first partition that matches the row values are used.
4949

5050
The `DEFAULT` partition catches all records which do not fit in other partitions. Only one `DEFAULT` partition is allowed.
5151

0 commit comments

Comments
 (0)