You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "CaoChunfang (via GitHub)" <gi...@apache.org> on 2025/04/28 07:59:31 UTC
[I] date_trunc('year', '2025-04-28 12:12:12');这样用为什么会报错,文档不是写的两种方式都行吗? [doris-website]
CaoChunfang opened a new issue, #2339:
URL: https://github.com/apache/doris-website/issues/2339
Path:/zh-CN/docs/sql-manual/sql-functions/scalar-functions/date-time-functions/date-trunc

如题,date_trunc('year', '2025-04-28 12:12:12')使用date_trunc函数会报错,但是文档却说两种方式都行?
`SQL 错误 [1105] [HY000]: errCode = 2, detailMessage = date_trunc function second param only support argument is year|quarter|month|week|day|hour|minute|second`
--
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: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] date_trunc('year', '2025-04-28 12:12:12');这样用为什么会报错,文档不是写的两种方式都行吗? [doris-website]
Posted by "KassieZ (via GitHub)" <gi...@apache.org>.
KassieZ commented on issue #2339:
URL: https://github.com/apache/doris-website/issues/2339#issuecomment-2892747255
感谢反馈,将与技术支持同学确认。如果有关技术问题,后续也可以前往 [Apache Doris 中文技术论坛](https://doris-forum.org.cn/)
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org