2024-08-16 09:56:12 +00:00
|
|
|
|
-- Tags: no-fasttest
|
|
|
|
|
-- no-fasttest: upper/lowerUTF8 use ICU
|
|
|
|
|
|
2015-06-10 12:47:27 +00:00
|
|
|
|
select lower('aaaaaaaaaaaaaaa012345789,.!aaaa' as str) = str;
|
|
|
|
|
select lowerUTF8('aaaaaaaaaaaaaaa012345789,.!aaaa' as str) = str;
|
|
|
|
|
select lower('AaAaAaAaAaAaAaA012345789,.!aAaA') = 'aaaaaaaaaaaaaaa012345789,.!aaaa';
|
|
|
|
|
select lowerUTF8('AaAaAaAaAaAaAaA012345789,.!aAaA') = 'aaaaaaaaaaaaaaa012345789,.!aaaa';
|
|
|
|
|
|
|
|
|
|
select upper('AAAAAAAAAAAAAAA012345789,.!AAAA' as str) = str;
|
|
|
|
|
select upperUTF8('AAAAAAAAAAAAAAA012345789,.!AAAA' as str) = str;
|
|
|
|
|
select upper('AaAaAaAaAaAaAaA012345789,.!aAaA') = 'AAAAAAAAAAAAAAA012345789,.!AAAA';
|
|
|
|
|
select upperUTF8('AaAaAaAaAaAaAaA012345789,.!aAaA') = 'AAAAAAAAAAAAAAA012345789,.!AAAA';
|
|
|
|
|
|
2017-12-07 04:44:33 +00:00
|
|
|
|
select sum(lower(materialize('aaaaaaaaaaaaaaa012345789,.!aaaa') as str) = str) = count() from system.one array join range(16384) as n;
|
|
|
|
|
select sum(lowerUTF8(materialize('aaaaaaaaaaaaaaa012345789,.!aaaa') as str) = str) = count() from system.one array join range(16384) as n;
|
|
|
|
|
select sum(lower(materialize('AaAaAaAaAaAaAaA012345789,.!aAaA')) = materialize('aaaaaaaaaaaaaaa012345789,.!aaaa')) = count() from system.one array join range(16384) as n;
|
|
|
|
|
select sum(lowerUTF8(materialize('AaAaAaAaAaAaAaA012345789,.!aAaA')) = materialize('aaaaaaaaaaaaaaa012345789,.!aaaa')) = count() from system.one array join range(16384) as n;
|
2015-06-10 12:47:27 +00:00
|
|
|
|
|
2017-12-07 04:44:33 +00:00
|
|
|
|
select sum(upper(materialize('AAAAAAAAAAAAAAA012345789,.!AAAA') as str) = str) = count() from system.one array join range(16384) as n;
|
|
|
|
|
select sum(upperUTF8(materialize('AAAAAAAAAAAAAAA012345789,.!AAAA') as str) = str) = count() from system.one array join range(16384) as n;
|
|
|
|
|
select sum(upper(materialize('AaAaAaAaAaAaAaA012345789,.!aAaA')) = materialize('AAAAAAAAAAAAAAA012345789,.!AAAA')) = count() from system.one array join range(16384) as n;
|
|
|
|
|
select sum(upperUTF8(materialize('AaAaAaAaAaAaAaA012345789,.!aAaA')) = materialize('AAAAAAAAAAAAAAA012345789,.!AAAA')) = count() from system.one array join range(16384) as n;
|
2015-06-10 12:47:27 +00:00
|
|
|
|
|
|
|
|
|
select lower('aaaaАБВГAAAAaaAA') = 'aaaaАБВГaaaaaaaa';
|
|
|
|
|
select upper('aaaaАБВГAAAAaaAA') = 'AAAAАБВГAAAAAAAA';
|
|
|
|
|
select lowerUTF8('aaaaАБВГAAAAaaAA') = 'aaaaабвгaaaaaaaa';
|
|
|
|
|
select upperUTF8('aaaaАБВГAAAAaaAA') = 'AAAAАБВГAAAAAAAA';
|
|
|
|
|
|
2017-12-07 04:44:33 +00:00
|
|
|
|
select sum(lower(materialize('aaaaАБВГAAAAaaAA')) = materialize('aaaaАБВГaaaaaaaa')) = count() from system.one array join range(16384) as n;
|
|
|
|
|
select sum(upper(materialize('aaaaАБВГAAAAaaAA')) = materialize('AAAAАБВГAAAAAAAA')) = count() from system.one array join range(16384) as n;
|
|
|
|
|
select sum(lowerUTF8(materialize('aaaaАБВГAAAAaaAA')) = materialize('aaaaабвгaaaaaaaa')) = count() from system.one array join range(16384) as n;
|
|
|
|
|
select sum(upperUTF8(materialize('aaaaАБВГAAAAaaAA')) = materialize('AAAAАБВГAAAAAAAA')) = count() from system.one array join range(16384) as n;
|
2024-08-16 09:56:12 +00:00
|
|
|
|
|
|
|
|
|
-- Turkish language
|
|
|
|
|
select upperUTF8('ır') = 'IR';
|
|
|
|
|
select lowerUTF8('ır') = 'ır';
|
|
|
|
|
|
|
|
|
|
-- German language
|
|
|
|
|
select upper('öäüß') = 'öäüß';
|
|
|
|
|
select lower('ÖÄÜẞ') = 'ÖÄÜẞ';
|
2024-08-21 20:20:32 +00:00
|
|
|
|
|
|
|
|
|
-- Bug 68680
|
|
|
|
|
SELECT lengthUTF8(lowerUTF8('Ä\0'));
|