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
   
   
![Image](https://github.com/user-attachments/assets/543946ad-a33d-47fe-be82-a7ac5d007ea6)
   如题,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: [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]

Reply via email to