[MCOL-1816] mcsapi - support bool data type Created: 2018-10-17 Updated: 2023-10-26 Resolved: 2018-11-09 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.2.0 |
| Fix Version/s: | 1.2.1 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Jens Röwekamp (Inactive) | Assignee: | Zdravelina Sokolovska (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Sprint: | 2018-20 | ||||||||||||
| Description |
|
With the new introduction of the boolean data type, mcsapi should support it as well. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2018-10-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
jens.rowekamp Since BOOL is an alias for TINYINT(1) (and the data type will be set to TINYINT when you try BOOL) how does it not already support it? | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jens Röwekamp (Inactive) [ 2018-10-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
ah okay didn't know that it is just an alias. C++ and Python seem to typecast boolean data types automatically to 0 and 1, but Java unfortunately doesn't.
We could either add a boolean datatype to the C++ layer to enable Java to support boolean data types as well or I can solve it within Swig. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-11-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Added to the C++ API. Assigned to Jens to review and add compatibility for other APIs | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-11-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
[root@cps mcsimport]# python Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> select * from test.MCOL_01816 ;
-----
----- |