ClickHouse/tests/queries/0_stateless/01906_lc_in_bug.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
615 B
MySQL
Raw Normal View History

drop table if exists tab;
create table tab (x LowCardinality(String)) engine = MergeTree order by tuple();
insert into tab values ('a'), ('bb'), ('a'), ('cc');
select count() as c, x in ('a', 'bb') as g from tab group by g order by c;
drop table if exists tab;
2022-12-22 08:33:16 +00:00
-- https://github.com/ClickHouse/ClickHouse/issues/44503
2023-08-12 17:31:18 +00:00
CREATE TABLE test(key Int32) ENGINE = MergeTree ORDER BY (key) SETTINGS index_granularity = 8192, index_granularity_bytes = '10Mi';
2022-12-22 08:33:16 +00:00
insert into test select intDiv(number,100) from numbers(10000000);
SELECT COUNT() FROM test WHERE key <= 100000 AND (NOT (toLowCardinality('') IN (SELECT '')));