carlvinhust2012 opened a new issue, #10874:
URL: https://github.com/apache/doris/issues/10874

   ### 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
   
   the lastest version
   
   ### What's Wrong?
   
   after I import array data in array_test table, I run delete first and then 
run select will report error.
   
   MySQL [example_db]> select * from array_test;
   ERROR 1105 (HY000): errCode = 2, detailMessage = :  0# 
doris::Status::ConstructErrorStatus(short, doris::Slice const&) at 
/home/disk1/hugo_work/doris_dev/baidu/bdg/doris/core/be/src/common/status.cpp:82
    1# doris::BetaRowsetReader::next_block(doris::vectorized::Block*) at 
/home/disk1/hugo_work/doris_dev/baidu/bdg/doris/core/be/src/olap/rowset/beta_rowset_reader.cpp:194
    2# 
doris::vectorized::VCollectIterator::Level0Iterator::next(doris::vectorized::Block*)
 at /home/disk1/hugo_work/doris_dev/baidu/bdg/doris/core/be/src/vec/ola
   
   ### What You Expected?
   
   it should not report error, should show us the result just as 'set 
enable_vectorized_engine = false;'
   
   MySQL [example_db]> select * from array_test;
   +------+---------+
   | id   | c_array |
   +------+---------+
   |    4 | NULL    |
   +------+---------+
   
   ### How to Reproduce?
   
   you can reproduce the problem as below steps:
   
   MySQL [example_db]> show create table array_test;
   
+------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | Table      | Create Table                                                  
                                                                                
                                                                                
                                                            |
   
+------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | array_test | CREATE TABLE `array_test` (
     `id` int(11) NULL,
     `c_array` array<int(11)> NULL
   ) ENGINE=OLAP
   DUPLICATE KEY(`id`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`id`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   ) |
   
+------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   1 row in set (0.020 sec)
   
   MySQL [example_db]> set enable_vectorized_engine = true;
   MySQL [example_db]> select * from array_test;
   +------+---------+
   | id   | c_array |
   +------+---------+
   |    5 | [NULL]  |
   |    4 | NULL    |
   |    3 | []      |
   +------+---------+
   3 rows in set (0.004 sec)
   
   MySQL [example_db]> 
   MySQL [example_db]> delete from array_test where id = 3;
   Query OK, 0 rows affected (0.046 sec)
   {'label':'delete_cb32f983-2a01-4a9b-8556-d3a4999e330e', 'status':'VISIBLE', 
'txnId':'46169'}
   
   MySQL [example_db]> delete from array_test where id = 5;
   Query OK, 0 rows affected (0.040 sec)
   {'label':'delete_32a57d75-d3a3-447c-bd27-4e4a295661bb', 'status':'VISIBLE', 
'txnId':'46171'}
   
   MySQL [example_db]> select * from array_test;
   ERROR 1105 (HY000): errCode = 2, detailMessage = :  0# 
doris::Status::ConstructErrorStatus(short, doris::Slice const&) at 
/home/disk1/hugo_work/doris_dev/baidu/bdg/doris/core/be/src/common/status.cpp:82
    1# doris::BetaRowsetReader::next_block(doris::vectorized::Block*) at 
/home/disk1/hugo_work/doris_dev/baidu/bdg/doris/core/be/src/olap/rowset/beta_rowset_reader.cpp:194
    2# 
doris::vectorized::VCollectIterator::Level0Iterator::next(doris::vectorized::Block*)
 at /home/disk1/hugo_work/doris_dev/baidu/bdg/doris/core/be/src/vec/ola
   
   ### 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-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to