Apache Doris 中文技术论坛
Questions Tags Users Badges

doris的建表语句如何设置TTL

Asked Dec 23, 2024 Modified Jan 1, 0001
Viewed 69
2.0

因为unique key 表,通常不会将时间戳放到key里面,没法按照时间分区
那建表的时候,指定unique key id,但是没按时间来进行分区,如何设置TTL吗?

edited Jan 1, 0001
蜂蜜烤鸡翅17
asked Dec 23, 2024
1 Answers

当前unique表的分区列需要作为key列,普通表没有ttl的机制;看建模上是否可以结合doris特性进行优化下的。

edited Jan 1, 1970
张彬华7698
answered Dec 23, 2024
Related Questions
各位大哥在通过k8s安装doris3.0的时候,有没有遇到cg启动不起来,提示Set max number of open file descriptors to a value greater than 60000.
1 answers
doris2.0.2.1大量delete语句和stream load执行在5分钟左右
1 answers
doris主键表可以bucket配置太小,怎么修改?
1 answers
flink-doris-connector-1.20.24.0.0 2pc ,checkpoint处恢复数据重复
1 answers
Doris的json解析问题
1 answers
datax同步数据到doris,任务间断性失败。
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.