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

根据int字段类型月份建动态分区,有什么好的方式?

Asked Jul 19, 2024 Modified Jan 1, 0001
Viewed 34
1.2

有个字段是月份YYYYMM格式,int类型,想根据这个字段做动态分区,或者更方便的分区建表语句,怎么实现呢?

edited Jan 1, 0001
doaneyang13
asked Jul 19, 2024
1 Answers

通常需要将在采集侧数据转为yyyy-MM-dd HH:mm:ss相关格式后存入到doris的date类型字段,再进行日期动态分区创建。

edited Jan 1, 1970
张彬华7688
answered Jul 19, 2024
Related Questions
1.2.8升级到2.0.0 FE报错
x2doris 同步doris2.0.4到doris2.1.7
1 answers
Doris 2.1.11 通过创建jdbc catalog 访问 doris 1.2.8的bitmap类型字段报错
1 answers
fe启动失败:java.lang.NullPointerException: null at org.apache.doris.datasource.InternalCatalog.unprotectAddReplica(InternalCatalog.java:983)
2 answers
Doris 1.2.8 查询嵌套视图数据时,报错IllegalArgumentException
1 answers
BE无法正常启动
1 answers

Terms of service Privacy policy

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