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 2022/05/06 05:14:15 UTC

[GitHub] [incubator-doris] wangbo opened a new issue, #9399: [Bug][Vectorization] Insert select wrong result

wangbo opened a new issue, #9399:
URL: https://github.com/apache/incubator-doris/issues/9399

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   master: e3b90de2d5170f31bbc5f9b15c2d6ab3a9ac597f
   
   ### What's Wrong?
   
   ```
    CREATE TABLE `test_dup_tab_datetime_nullable` (
     `siteid` int(11) NULL COMMENT "",
     `datetime1` datetime NULL COMMENT "",
     `datetime2` datetime NULL COMMENT "",
     `datetime3` datetime NULL COMMENT ""
   ) ENGINE=OLAP
   DUPLICATE KEY(`siteid`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`siteid`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   )
   set enable_vectorized_engine = true;
   insert into test_dup_tab_datetime_nullable values
           (1,'2021-01-01 23:10:01','2021-01-02 23:10:04','2021-01-02 22:10:04'),
           (2,'2021-02-01 23:10:01','2021-02-02 23:10:04','2021-03-02 22:10:04'),
           (3,'2021-03-01 23:10:01','2021-03-02 23:10:04','2021-04-02 22:10:04'),
           (4,'2021-04-01 23:10:01','2021-04-02 23:10:04','2021-05-02 22:10:04'),
           (5,'2021-05-01 23:10:01','2021-05-02 23:10:04','2021-06-02 22:10:04'),
           (null,'2021-06-01 23:10:01',null,'2021-06-02 22:10:04')
   
   query result:
   mysql> set enable_vectorized_engine = false;
   Query OK, 0 rows affected (0.00 sec)
   
   mysql> select * from test_dup_tab_datetime_nullable;
   +--------+---------------------+---------------------+---------------------+
   | siteid | datetime1           | datetime2           | datetime3           |
   +--------+---------------------+---------------------+---------------------+
   |   NULL | 2021-06-01 23:10:01 | NULL                | 2021-06-02 22:10:04 |
   |      0 | 2021-01-01 23:10:01 | NULL                | 2021-01-02 22:10:04 |
   |      1 | 2021-02-01 23:10:01 | 2021-01-02 23:10:04 | 2021-03-02 22:10:04 |
   |      2 | 2021-03-01 23:10:01 | 2021-02-02 23:10:04 | 2021-04-02 22:10:04 |
   |      3 | 2021-04-01 23:10:01 | 2021-03-02 23:10:04 | 2021-05-02 22:10:04 |
   |      4 | 2021-05-01 23:10:01 | 2021-04-02 23:10:04 | 2021-06-02 22:10:04 |
   +--------+---------------------+---------------------+---------------------+
   6 rows in set (0.02 sec)
   ```
   
   We can see the row siteid=5 missed.
   
   ### What You Expected?
   
   return correct result.
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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] [incubator-doris] HappenLee closed issue #9399: [Bug][Vectorization] Insert select wrong result

Posted by GitBox <gi...@apache.org>.
HappenLee closed issue #9399: [Bug][Vectorization] Insert select wrong result 
URL: https://github.com/apache/incubator-doris/issues/9399


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