1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-05-28 13:01:26 +03:00
Sergey Zefirov a2d7a21196
Fix "column1 LIKE column2" for columns from same table (#2776)
This WHERE part will be performed with FilterCommand, which did not had
LIKE operator implemented until now.
2023-03-17 12:10:53 +02:00

13 lines
443 B
Plaintext

DROP DATABASE IF EXISTS mcol5418;
CREATE DATABASE mcol5418;
USE mcol5418;
CREATE TABLE tcs(d1 CHAR(6), d2 CHAR(6)) ENGINE=columnstore;
INSERT INTO tcs(d1, d2) VALUES ('a','a'), ('a', 'b');
SELECT 'columnstore like', d1, d2 FROM tcs WHERE (d1 LIKE d2);
columnstore like d1 d2
columnstore like a a
SELECT 'columnstore not like', d1, d2 FROM tcs WHERE (d1 NOT LIKE d2);
columnstore not like d1 d2
columnstore not like a b
DROP DATABASE mcol5418;