[MCOL-197] INSERT INTO <TABLE> SELECT ... does not work (even for insert into table select * from table) Created: 2016-06-24  Updated: 2016-12-22  Resolved: 2016-12-22

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

Type: Bug Priority: Major
Reporter: Justin Swanhart (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None


 Description   

MariaDB [test]> insert into fact select * from fact;
Query OK, 360 rows affected, 296 warnings (3.43 sec)
Records: 360 Duplicates: 0 Warnings: 296

in fact, it fails completely in STRICT mode:

MariaDB [test]> set sql_mode=strict_all_tables;
Query OK, 0 rows affected (0.00 sec)

MariaDB [test]> select count from fact;
----------

count

----------

45

----------
1 row in set (0.01 sec)

MariaDB [test]> insert into fact select * from fact;
ERROR 9999 (HY000): Values saturated% of stage done

Columnstore isn't actually doing the INSERT .. SELECT properly.
See:
git clone https://github.com/greenlion/columnstore_tests.git
sudo yum install php-cli php-mysql php-pear
cd columnstore_tests
git checkout insert_select
php run_tests --record # record results against MyISAM table
php run_tests --debug | tee out.txt #compare to CS table
Examine out.txt and you will find that the operation returns wrong results for CS compared to MyISAM in 197 of 1229 tests.



 Comments   
Comment by David Thompson (Inactive) [ 2016-12-22 ]

This is working with 1.0.6.

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