Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement](DDL) check illegal partition exprs (#40158)
before: ```sql mysql> CREATE TABLE not_auto_expr ( -> `TIME_STAMP` date NOT NULL -> ) -> partition by range (date_trunc(`TIME_STAMP`, 'day'))() -> DISTRIBUTED BY HASH(`TIME_STAMP`) BUCKETS 10 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1" -> ); Query OK, 0 rows affected (0.14 sec) ``` now: ```sql mysql> CREATE TABLE not_auto_expr ( -> `TIME_STAMP` date NOT NULL -> ) -> partition by range (date_trunc(`TIME_STAMP`, 'day'))() -> DISTRIBUTED BY HASH(`TIME_STAMP`) BUCKETS 10 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1" -> ); ERROR 1105 (HY000): errCode = 2, detailMessage = errCode = 2, detailMessage = Non-auto partition table not support partition expr! ```
- Loading branch information