ClickHouse/tests/queries/0_stateless/02677_grace_hash_limit_race.sql

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

17 lines
411 B
MySQL
Raw Normal View History

2023-03-02 17:50:26 +00:00
DROP TABLE IF EXISTS test_grace_hash;
CREATE TABLE test_grace_hash (id UInt32, value UInt64) ENGINE = MergeTree ORDER BY id;
INSERT INTO test_grace_hash SELECT number, number % 100 = 0 FROM numbers(100000);
SET join_algorithm = 'grace_hash';
SELECT count() FROM (
2023-03-02 17:50:26 +00:00
SELECT f.id FROM test_grace_hash AS f
LEFT JOIN test_grace_hash AS d
ON f.id = d.id
LIMIT 1000
);
2023-03-02 17:50:26 +00:00
2023-03-02 21:47:57 +00:00
DROP TABLE test_grace_hash;