[MCOL-5318] select count(*) return 0 rows after large insert or LDI into an empty table Created: 2022-11-22  Updated: 2023-02-08  Resolved: 2023-02-03

Status: Closed
Project: MariaDB ColumnStore
Component/s: writeengine
Affects Version/s: None
Fix Version/s: 22.08.8

Type: Bug Priority: Blocker
Reporter: Daniel Lee (Inactive) Assignee: Gagan Goel (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Assigned for Testing: Daniel Lee Daniel Lee (Inactive)

 Description   

Build tested
engine: 678bd6c91e22c72f57462f05a16dd8fea68a0db4
server: 34ad833c6a39f169c4a42f52338258ea563bc263
buildNo: 6098

MTR test case: columnstore/autopilot.mcs4002_autopilot_large_insert.test

insert into lineitem values
(10,128449,3474,3,27,39890.88,0.06,0.07,'A','F','1994-01-16','1993-11-22','1994-01-23','DELIVER IN PERSON','SHIP','nal foxes wake.'),
(10,128449,3474,3,27,39890.88,0.06,0.07,'A','F','1994-01-16','1993-11-22','1994-01-23','DELIVER IN PERSON','SHIP','nal foxes wake.'),
(10,128449,3474,3,27,39890.88,0.06,0.07,'A','F','1994-01-16','1993-11-22','1994-01-23','DELIVER IN PERSON','SHIP','nal foxes wake.'),
.
.
.
(10,128449,3474,3,27,39890.88,0.06,0.07,'A','F','1994-01-16','1993-11-22','1994-01-23','DELIVER IN PERSON','SHIP','nal foxes wake.'),(10,128449,3474,3,27,39890.88,0.06,0.07,'A','F','1994-01-16','1993-11-22','1994-01-23','DELIVER IN PERSON','SHIP','nal foxes wake.');
Query OK, 7300 rows affected (0.297 sec)
Records: 7300  Duplicates: 0  Warnings: 0
 
MariaDB [mytest]> select count(*) from lineitem;
+----------+
| count(*) |
+----------+
|        0 |
+----------+
1 row in set (0.023 sec)

MTR test case: columnstore/autopilot.mcs4008_autopilot_sanity_test.test

MariaDB [mytest]> set columnstore_use_import_for_batchinsert=0;
Query OK, 0 rows affected (0.000 sec)
 
MariaDB [mytest]> LOAD DATA INFILE '/data/qa/source/dbt3/1m/orders.tbl' INTO TABLE orders FIELDS TERMINATED BY '|';
Query OK, 1500 rows affected (0.199 sec)             
Records: 1500  Deleted: 0  Skipped: 0  Warnings: 0
 
MariaDB [mytest]> select count(*) from orders;
+----------+
| count(*) |
+----------+
|        0 |
+----------+
1 row in set (0.023 sec)

LDI works fine when columnstore_use_import_for_batchinsert=1.


Generated at Thu Feb 08 02:56:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.