tidb icon indicating copy to clipboard operation
tidb copied to clipboard

Create `Range columns` type partition error

Open ciscoxll opened this issue 8 years ago • 0 comments

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
create table t29 (
    a decimal
)  partition by range columns (a)(
    partition p0 values less than (0)
);
  1. What did you expect to see?

Meet no error.

  1. What did you see instead?
ERROR HY000: Field 'a' is of a not allowed type for this type of partitioning

The range partition comes in two varieties:

  • a. partition by range(expr) support
  • b. partition by range columns(column_list) not support

Range columns partition only implements the parser, so it will not be checked. So the DDL should run successfully.

  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

master branch 129f499f9b5f5fe52a90c15abe4fdb858ad43e7e

ciscoxll avatar Sep 04 '18 11:09 ciscoxll