You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "Cherry-Puppy (via GitHub)" <gi...@apache.org> on 2023/04/18 10:41:07 UTC

[GitHub] [doris] Cherry-Puppy opened a new issue, #18787: [Bug] year_floor function returns incorrectly

Cherry-Puppy opened a new issue, #18787:
URL: https://github.com/apache/doris/issues/18787

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   1.2.3-rc02
   
   ### What's Wrong?
   
   <img width="602" alt="image" src="https://user-images.githubusercontent.com/46736583/232752513-aefe50fd-d7ae-4982-8ba7-a02257aee5e6.png">
   Incorrect return when using CURRNT_DATE()
   
   ### What You Expected?
   
   Expect to return 2023-01-01 00:00:00
   ps: select year_floor(CURRENT_DATE())
   
   ### How to Reproduce?
   
   select year_floor(CURRENT_DATE())
   
   ### Anything Else?
   
   Use "select year_floor(cast(CURRENT_DATE() as STRING));" to avoid
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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


[GitHub] [doris] HappenLee closed issue #18787: [Bug] year_floor function returns incorrectly

Posted by "HappenLee (via GitHub)" <gi...@apache.org>.
HappenLee closed issue #18787: [Bug] year_floor function returns incorrectly
URL: https://github.com/apache/doris/issues/18787


-- 
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