mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
8c3417fbf7
* Integrated CachingAllocator into MarkCache * fixed build errors * reset func hotfix * upd: Fixing build * updated submodules links * fix 2 * updating grabber allocator proto * updating lost work * updating CMake to use concepts * some other changes to get it building (integration into MarkCache) * further integration into caches * updated Async metrics, fixed some build errors * and some other errors revealing * added perfect forwarding to some functions * fix: forward template * fix: constexpr modifier * fix: FakePODAllocator missing member func * updated PODArray constructor taking alloc params * fix: PODArray overload with n restored * fix: FakePODAlloc duplicating alloc() func * added constexpr variable for alloc_tag_t * split cache values by allocators, provided updates * fix: memcpy * fix: constexpr modifier * fix: noexcept modifier * fix: alloc_tag_t for PODArray constructor * fix: PODArray copy ctor with different alloc * fix: resize() signature * updating to lastest working master * syncing with 273267 * first draft version * fix: update Searcher to case-insensitive * added ILIKE test * fixed style errors, updated test, split like and ilike, added notILike * replaced inconsistent comments * fixed show tables ilike * updated missing test cases * regenerated ya.make * Update 01355_ilike.sql Co-authored-by: myrrc <me-clickhouse@myrrec.space> Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
62 lines
1.7 KiB
SQL
62 lines
1.7 KiB
SQL
SELECT 'Hello' ILIKE '';
|
||
SELECT 'Hello' ILIKE '%';
|
||
SELECT 'Hello' ILIKE '%%';
|
||
SELECT 'Hello' ILIKE '%%%';
|
||
SELECT 'Hello' ILIKE '%_%';
|
||
SELECT 'Hello' ILIKE '_';
|
||
SELECT 'Hello' ILIKE '_%';
|
||
SELECT 'Hello' ILIKE '%_';
|
||
|
||
SELECT 'Hello' ILIKE 'H%o';
|
||
SELECT 'hello' ILIKE 'H%o';
|
||
SELECT 'hello' ILIKE 'h%o';
|
||
SELECT 'Hello' ILIKE 'h%o';
|
||
|
||
SELECT 'Hello' NOT ILIKE 'H%o';
|
||
SELECT 'hello' NOT ILIKE 'H%o';
|
||
SELECT 'hello' NOT ILIKE 'h%o';
|
||
SELECT 'Hello' NOT ILIKE 'h%o';
|
||
|
||
SELECT 'OHello' ILIKE '%lhell%';
|
||
SELECT 'Ohello' ILIKE '%hell%';
|
||
SELECT 'hEllo' ILIKE '%HEL%';
|
||
|
||
SELECT 'OHello' NOT ILIKE '%lhell%';
|
||
SELECT 'Ohello' NOT ILIKE '%hell%';
|
||
SELECT 'hEllo' NOT ILIKE '%HEL%';
|
||
|
||
SELECT materialize('prepre_f') ILIKE '%pre_f%';
|
||
|
||
SELECT 'abcdef' ILIKE '%aBc%def%';
|
||
SELECT 'ABCDDEF' ILIKE '%abc%def%';
|
||
SELECT 'Abc\nDef' ILIKE '%abc%def%';
|
||
SELECT 'abc\ntdef' ILIKE '%abc%def%';
|
||
SELECT 'abct\ndef' ILIKE '%abc%dEf%';
|
||
SELECT 'abc\n\ndeF' ILIKE '%abc%def%';
|
||
SELECT 'abc\n\ntdef' ILIKE '%abc%deF%';
|
||
SELECT 'Abc\nt\ndef' ILIKE '%abc%def%';
|
||
SELECT 'abct\n\ndef' ILIKE '%abc%def%';
|
||
SELECT 'ab\ndef' ILIKE '%Abc%def%';
|
||
SELECT 'aBc\nef' ILIKE '%ABC%DEF%';
|
||
|
||
SELECT CAST('hello' AS FixedString(5)) ILIKE '%he%o%';
|
||
|
||
SELECT 'ёЁё' ILIKE 'Ё%Ё';
|
||
SELECT 'ощщЁё' ILIKE 'Щ%Ё';
|
||
SELECT 'ощЩЁё' ILIKE '%Щ%Ё';
|
||
|
||
SELECT 'Щущпандер' ILIKE '%щп%е%';
|
||
SELECT 'Щущпандер' ILIKE '%щП%е%';
|
||
SELECT 'ощщЁё' ILIKE '%щ%';
|
||
SELECT 'ощЩЁё' ILIKE '%ё%';
|
||
|
||
SHOW TABLES NOT ILIKE '%';
|
||
DROP DATABASE IF EXISTS test_01355;
|
||
CREATE DATABASE test_01355;
|
||
USE test_01355;
|
||
CREATE TABLE test1 (x UInt8) ENGINE = Memory;
|
||
CREATE TABLE test2 (x UInt8) ENGINE = Memory;
|
||
SHOW TABLES ILIKE 'tES%';
|
||
SHOW TABLES NOT ILIKE 'TeS%';
|
||
DROP DATABASE test_01355;
|