[MCOL-173] "INSERT INTO tableName SELECT 42,100" not working correctly Created: 2016-06-23 Updated: 2016-09-15 Resolved: 2016-09-15 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | DMLProc, ExeMgr |
| Affects Version/s: | 1.0.1 |
| Fix Version/s: | 1.0.3 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 1.0.3 | ||||||||
| Description |
|
This bug was reported by a MariaDB ColumnStore Google Group user. The issue also occur when "engine=columnstore" is used in the create table statement. This issue is NOT in InfiniDB 4.6.0-1. SET default_storage_engine=columnstore; CREATE TABLE `pipo` ( `id_unique` bigint(12) NOT NULL DEFAULT '999999999999', `top_top_email_valide` decimal(18,0) DEFAULT NULL); MariaDB [mcs]> INSERT INTO pipo SELECT 42,100; MariaDB [mcs]> SELECT * FROM pipo;
----------
----------
MariaDB [mcs]> INSERT INTO pipo VALUES (111,100); MariaDB [mcs]> SELECT * FROM pipo;
----------
---------- No bug with NOT NULL (also DEFAULT NULL ) : MariaDB [mcs]> CREATE TABLE `pipo` ( `id_unique` bigint(12) NOT NULL DEFAULT '999999999999', `top_top_email_valide` decimal(18,0) NOT NULL); MariaDB [mcs]> INSERT INTO pipo SELECT 42,100; MariaDB [mcs]> SELECT * FROM pipo;
----------
---------- MariaDB [mcs]> INSERT INTO pipo VALUES (111,100); MariaDB [mcs]> SELECT * FROM pipo;
----------
---------- |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2016-09-09 ] | ||||||||||||
|
This is only when
which is the default. | ||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2016-09-09 ] | ||||||||||||
|
Code in https://github.com/mariadb-corporation/mariadb-columnstore-engine/pull/8 Hopefully the QA for this should be pretty straight forward. | ||||||||||||
| Comment by Daniel Lee (Inactive) [ 2016-09-15 ] | ||||||||||||
|
Build verified: mscadmin> getsoft Name : mariadb-columnstore-platform MariaDB [mytest]> CREATE TABLE `pipo` ( `id_unique` bigint(12) NOT NULL DEFAULT '999999999999', `top_top_email_valide` decimal(18,0) DEFAULT NULL) engine=columnstore; MariaDB [mytest]> INSERT INTO pipo SELECT 42,100; MariaDB [mytest]> select * from pipo;
----------
---------- MariaDB [mytest]> drop table pipo; MariaDB [mytest]> SET default_storage_engine=columnstore; MariaDB [mytest]> CREATE TABLE `pipo` ( `id_unique` bigint(12) NOT NULL DEFAULT '999999999999', `top_top_email_valide` decimal(18,0) DEFAULT NULL); MariaDB [mytest]> show create table pipo;
------
------ MariaDB [mytest]> INSERT INTO pipo SELECT 42,100; MariaDB [mytest]> SELECT * FROM pipo;
----------
---------- |