-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 #57284 from ClickHouse/cherrypick/23.10/eb6fba9f65…
…812c8cf2c5ad6ba925c635d76cc157 Cherry pick #57147 to 23.10: Fix segfault after ALTER UPDATE with Nullable MATERIALIZED column
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
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
3 changes: 3 additions & 0 deletions
3
tests/queries/0_stateless/02919_segfault_nullable_materialized_update.reference
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,3 @@ | ||
0 0 false | ||
1 1 true | ||
0 0 false |
18 changes: 18 additions & 0 deletions
18
tests/queries/0_stateless/02919_segfault_nullable_materialized_update.sql
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,18 @@ | ||
DROP TABLE IF EXISTS crash_02919; | ||
|
||
CREATE TABLE crash_02919 ( | ||
b Int64, | ||
c Nullable(Int64) MATERIALIZED b, | ||
d Nullable(Bool) MATERIALIZED b | ||
) | ||
ENGINE = MergeTree | ||
ORDER BY tuple(); | ||
|
||
INSERT INTO crash_02919 VALUES (0); | ||
SELECT b, c, d FROM crash_02919; | ||
ALTER TABLE crash_02919 UPDATE b = 1 WHERE 1=1 SETTINGS mutations_sync = 1; | ||
SELECT b, c, d FROM crash_02919; | ||
ALTER TABLE crash_02919 UPDATE b = 0.1 WHERE 1=1 SETTINGS mutations_sync = 1; | ||
SELECT b, c, d FROM crash_02919; | ||
|
||
DROP TABLE crash_02919; |