forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ClickHouse#70695 from CurtizJ/fix-filling-missed-a…
…rrays Fixed crash in filling of missed arrays
- Loading branch information
Showing
4 changed files
with
43 additions
and
6 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
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 @@ | ||
20000 |
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,22 @@ | ||
DROP TABLE IF EXISTS t_fill_arrays; | ||
|
||
CREATE TABLE t_fill_arrays | ||
( | ||
`id` String, | ||
`mapCol` Map(String, Array(String)), | ||
) | ||
ENGINE = MergeTree | ||
ORDER BY id | ||
SETTINGS vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 1, min_bytes_for_full_part_storage = 0; | ||
|
||
INSERT INTO t_fill_arrays (id) SELECT hex(number) FROM numbers(10000); | ||
|
||
ALTER TABLE t_fill_arrays ADD COLUMN arrCol Array(String) DEFAULT []; | ||
|
||
INSERT INTO t_fill_arrays (id) SELECT hex(number) FROM numbers(10000); | ||
|
||
SELECT count() FROM t_fill_arrays WHERE NOT ignore(arrCol, mapCol.values); | ||
|
||
OPTIMIZE TABLE t_fill_arrays FINAL; | ||
|
||
DROP TABLE t_fill_arrays; |