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

【已解决】datetimeV2如何转化成毫秒时间戳

Asked Mar 6, 2024 Modified Mar 8, 2024
Viewed 131
2.0

求助大神,datetimeV2如何转化成毫秒时间戳

edited Mar 8, 2024
Kaven5
asked Mar 6, 2024
1 Answers

看文档没有直接转为毫秒的函数,只能先 UNIX_TIMESTAMP,然后加上 extract(microsecond from cast('2022-09-22 17:01:30.000123' as datetimev2(6)));

或者加上 microsecond(cast('1999-01-02 10:11:12.000123' as datetimev2(6)))

相关函数见文档:EXTRACT,MICROSECOND,UNIX_TIMESTAMP

edited Mar 8, 2024
zhb123319
answered Mar 6, 2024
Related Questions
Alter routine load后参数变动
1 answers
Doris Routine Load重置offset
1 answers
我的doris版本为2.0.6 在备份操作时,会导致所以fe节点宕机,这种情况该怎么排查,为什么备份会导致这个问题?
1 answers
Doris Routine Load自动恢复机制
1 answers
Doris 2.0.15,3FE、6BE(3BE mix角色 3BE computation角色)3个mix角色的BE节点CPU使用率100%
1 answers
doris fe节点变更成高可用配置
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 中文技术论坛.