ClickHouse/tests/queries/0_stateless/02845_join_on_cond_sparse.sql

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

22 lines
584 B
MySQL
Raw Normal View History

2023-08-18 12:11:33 +00:00
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t2;
CREATE TABLE t1 ( id UInt32, attr UInt32 ) ENGINE = MergeTree ORDER BY id
SETTINGS ratio_of_defaults_for_sparse_serialization = 0.1;
INSERT INTO t1 VALUES (0, 0);
CREATE TABLE t2 ( id UInt32, attr UInt32 ) ENGINE = MergeTree ORDER BY id
SETTINGS ratio_of_defaults_for_sparse_serialization = 0.1;
INSERT INTO t2 VALUES (0, 0);
SELECT * FROM t1 JOIN t2 ON t1.id = t2.id AND t1.attr != 0;
INSERT INTO t1 VALUES (0, 1);
SELECT * FROM t1 JOIN t2 ON t1.id = t2.id AND t1.attr != 0;
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t2;