ClickHouse/tests/queries/0_stateless/03221_key_condition_bug.sql

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

12 lines
294 B
MySQL
Raw Normal View History

2024-08-14 15:16:16 +00:00
CREATE TABLE IF NOT EXISTS report_metrics_v2
(
`a` UInt64
) Engine = MergeTree()
ORDER BY a;
insert into report_metrics_v2 SELECT * FROM system.numbers LIMIT 50000;
SELECT count(*) from report_metrics_v2 WHERE (intDiv(a, 50) = 200) AND (intDiv(a, 50000) = 0);
DROP TABLE report_metrics_v2;