[MCOL-4644] bit operators don't work in WHERE clause Created: 2021-03-26  Updated: 2021-04-09  Resolved: 2021-04-09

Status: Closed
Project: MariaDB ColumnStore
Component/s: PrimProc
Affects Version/s: 5.5.2
Fix Version/s: 6.1.1

Type: Bug Priority: Blocker
Reporter: David Hall (Inactive) Assignee: Alexander Barkov
Resolution: Duplicate Votes: 0
Labels: regression

Issue Links:
Duplicate
duplicates MCOL-4666 Empty set when using BIT OR and BIT A... Closed
Relates
relates to MCOL-4666 Empty set when using BIT OR and BIT A... Closed

 Description   

The bit operators |, ^, <, > don't appear to work in a where clause.

MariaDB [tpch1]> SELECT cidx,CDECIMAL18_2, CDECIMAL4_2 | 4 from DataTypeTestm where (CDECIMAL4_2 | 4) <> CDECIMAL18_2;
Empty set (0.039 sec)
 
MariaDB [tpch1]> SELECT cidx,CDECIMAL18_2, CDECIMAL4_2 | 4 from DataTypeTestm where (CDECIMAL4_2 | 4) < CDECIMAL18_2;
Empty set (0.035 sec)
 
MariaDB [tpch1]> SELECT cidx,CDECIMAL18_2, CDECIMAL4_2 | 4 from DataTypeTestm where (CDECIMAL4_2 | 4) > CDECIMAL18_2;
Empty set (0.033 sec)
 
MariaDB [tpch1]> SELECT cidx,CDECIMAL18_2, CDECIMAL4_2 | 4 from DataTypeTestm where (CDECIMAL4_2 | 4) = CDECIMAL18_2;
Empty set (0.052 sec)

At least one of these should evaluate true and return rows.



 Comments   
Comment by David Hall (Inactive) [ 2021-04-05 ]

May be related to MCOL-4666

Comment by Alexander Barkov [ 2021-04-05 ]

David.Hall, yes, this is the same issue. I did not know about MCOL-4644 when reporting MCOL-4666.

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