[MCOL-1535] Case when~ vs case ~ when ~ Created: 2018-07-09 Updated: 2018-07-30 Resolved: 2018-07-25 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.1.4 |
| Fix Version/s: | 1.1.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | ssauravy | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos 6.8 |
||
| Issue Links: |
|
||||||||||||||||
| Sprint: | 2018-14, 2018-15 | ||||||||||||||||
| Description |
|
mysql>create table t2(id int, nm varchar(10)) engine=columnstore; mysql>insert into t2 values( 1, 'AAA'); select
-----
----- ------>>>> The values of case when and chse ~ when are returned differently. It looks like a bug. Please confirm. |
| Comments |
| Comment by Roman [ 2018-07-09 ] | ||||||||||||||||||||||||||||||||
|
Quick check shows that InnoDB table returns 1s in both cases:
| ||||||||||||||||||||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-07-09 ] | ||||||||||||||||||||||||||||||||
|
This might be a duplicate of | ||||||||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2018-07-19 ] | ||||||||||||||||||||||||||||||||
|
It's not a duplicate of | ||||||||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2018-07-23 ] | ||||||||||||||||||||||||||||||||
|
The problem is that caseOperationType() was not adjusted for the new simple case parameter order in 10.2. | ||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2018-07-25 ] | ||||||||||||||||||||||||||||||||
|
Build verified: 1.1.6-1 /root/columnstore/mariadb-columnstore-server Merge pull request #123 from drrtuy/ /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #526 from mariadb-corporation/ Mcol 1535 MariaDB [mytest]> create table t2(id int, nm varchar(10)) engine=columnstore; MariaDB [mytest]> insert into t2 values( 1, 'AAA'); MariaDB [mytest]> insert into t2 values( 2, 'BBB'); MariaDB [mytest]> insert into t2 values( 3, 'CCC'); MariaDB [mytest]>
-----
----- |