You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, partition by range and partition by range columns shares some code, and partition by range has the constraint that only int value is allowed in the partition expression, this constraint is mistakenly imposed on partition by range columns and cause this bug.
// TODO: Remove the test 's.Partition.Expr == nil' when we support 'PARTITION BY RANGE COLUMNS'
if len(constraints) == 0 || s.Partition.Expr == nil {
return nil
}
It looks like that the condition s.Partition.Expr == nil needs to be removed.
Bug Report
Please answer these questions before submitting your issue. Thanks!
Table Schema is
and run the sql
What did you expect to see?
Query OK, 0 rows affected
What did you see instead?
ERROR 1659 (HY000): Field '"2019-09-02 00:00:00"' is of a not allowed type for this type of partitioning
What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?V3.0.2
The text was updated successfully, but these errors were encountered: