You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2023/01/12 05:36:58 UTC

[GitHub] [doris] Yukang-Lian opened a new issue, #15855: [Bug] some agg functions return wrong results when the param type is datetimev2

Yukang-Lian opened a new issue, #15855:
URL: https://github.com/apache/doris/issues/15855

   ### 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
   
   master
   
   ### What's Wrong?
   
   ```sql
   MySQL [test]> select array_min(array(cast ('2022-12-02 22:23:24.999999' as datetimev2(6))));
   +-----------------------------------------------------------------------+
   | array_min(array(CAST('2022-12-02 22:23:24.999999' AS DATETIMEV2(6)))) |
   +-----------------------------------------------------------------------+
   | 2022-12-02 22:23:24                                                   |
   +-----------------------------------------------------------------------+
   1 row in set (0.01 sec)
   
   MySQL [test]> select array_max(array(cast ('2022-12-02 22:23:24.999999' as datetimev2(6))));
   +-----------------------------------------------------------------------+
   | array_max(array(CAST('2022-12-02 22:23:24.999999' AS DATETIMEV2(6)))) |
   +-----------------------------------------------------------------------+
   | 2022-12-02 22:23:24                                                   |
   +-----------------------------------------------------------------------+
   1 row in set (0.01 sec)
   
   ```
   
   ### What You Expected?
   
   ```sql
   MySQL [test]> select array_min(array(cast ('2022-12-02 22:23:24.999999' as datetimev2(6))));
   +-----------------------------------------------------------------------+
   | array_min(array(CAST('2022-12-02 22:23:24.999999' AS DATETIMEV2(6)))) |
   +-----------------------------------------------------------------------+
   | 2022-12-02 22:23:24.999999                                            |
   +-----------------------------------------------------------------------+
   1 row in set (0.01 sec)
   
   MySQL [test]> select array_max(array(cast ('2022-12-02 22:23:24.999999' as datetimev2(6))));
   +-----------------------------------------------------------------------+
   | array_max(array(CAST('2022-12-02 22:23:24.999999' AS DATETIMEV2(6)))) |
   +-----------------------------------------------------------------------+
   | 2022-12-02 22:23:24.999999                                            |
   +-----------------------------------------------------------------------+
   1 row in set (0.01 sec)
   
   ```
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### 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] Gabriel39 closed issue #15855: [Bug] some agg functions return wrong results when the param type is array(datetimev2)

Posted by "Gabriel39 (via GitHub)" <gi...@apache.org>.
Gabriel39 closed issue #15855: [Bug] some agg functions return wrong results when the param type is array(datetimev2)
URL: https://github.com/apache/doris/issues/15855


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