yedajiang44 opened a new issue #6170:
URL: https://github.com/apache/incubator-doris/issues/6170
按照文档对表进行动态分区转换
```SQL
ALTER TABLE example_db.`Location` SET
(
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "DAY",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.buckets"="32",
"dynamic_partition.start" = "-32",
"dynamic_partition.end" = "7"
);
```
但是得到错误
```LOG
ERROR 1064 (HY000): errCode = 2, detailMessage = Table
default_cluster:example_db.Location is not a dynamic partition table. Use
command `HELP ALTER TABLE` to see how to change a normal table to a dynamic
partition table.
```
FE已配置`dynamic_partition_enable=true`
建表语句
```SQL
CREATE TABLE example_db.`Location` (
`Id` varchar(36) NOT NULL,
`SimNumber` varchar(15) NULL,
`Latitude` int(11) NOT NULL,
`Longitude` int(11) NOT NULL,
`Altitude` smallint(6) NOT NULL,
`Speed` smallint(6) NOT NULL,
`Direction` smallint(6) NOT NULL,
`DateTime` datetime NOT NULL,
`IsBatch` boolean NOT NULL,
`CreateDateTime` datetime NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`Id`, `SimNumber`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`SimNumber`) BUCKETS 10
PROPERTIES (
"replication_num" = "1",
"in_memory" = "false",
"storage_format" = "V2"
);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]