[MCOL-266] BOOLEAN data type not supported Created: 2016-08-18 Updated: 2018-10-11 Resolved: 2018-10-11 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.2.0 |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Andrew Hutchings (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | contribution, relnote | ||
| Epic Link: | ColumnStore Compatibility Improvements |
| Sprint: | 2018-18 |
| Description |
|
BOOLEAN data type is not currently supported |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2018-10-08 ] |
|
Reviewing external contribution from tntnatbry |
| Comment by Daniel Lee (Inactive) [ 2018-10-08 ] |
|
Build tested: 1.2 source /root/columnstore/mariadb-columnstore-server Merge pull request #134 from mariadb-corporation/versionCmakeFix port changes for mysql_version cmake to fix columnstore RPM packaging /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #586 from mariadb-corporation/ Found couple issues with alter table: Add column does not support using true or false as default value. MariaDB [mytest]> alter table t1 add column c10 boolean default true; Change column does not recognize boolean as data type MariaDB [mytest]> alter table t1 change column c1 c10 boolean; this one worked with integer. MariaDB [mytest]> alter table t1 change column c1 c10 integer; |
| Comment by Daniel Lee (Inactive) [ 2018-10-08 ] |
|
The following areas have been tested: create table, with or without default alter table add column
MariaDB [mytest]> alter table t1 add column c10 boolean default true; MariaDB [mytest]> alter table t1 change column c1 c10 boolean; drop column colxml editem dml insert with true , false, 1, 0 update with true, false, 1, 0. query join truncate cpimport
|
| Comment by Andrew Hutchings (Inactive) [ 2018-10-09 ] |
|
Modified the code to allow true/false as default values. We can only support change of matching data type and digits. So you could change tinyint(1) to Boolean and back again. But not any other int type (including tinyint's default digits of tinyint(4)). |
| Comment by Daniel Lee (Inactive) [ 2018-10-11 ] |
|
Build verified: 1.2 source /root/columnstore/mariadb-columnstore-server Merge pull request #134 from mariadb-corporation/versionCmakeFix port changes for mysql_version cmake to fix columnstore RPM packaging /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #588 from mariadb-corporation/ The alter table add columns with default value issue has been fixed. |