-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 1 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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; |