-
Notifications
You must be signed in to change notification settings - Fork 7k
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 #2920 from VadimPE/CLICKHOUSE-3819
CLICKHOUSE-3819 add CASE without ELSE
- Loading branch information
Showing
3 changed files
with
24 additions
and
5 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
4 changes: 4 additions & 0 deletions
4
dbms/tests/queries/0_stateless/00688_case_without_else.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,4 @@ | ||
0 | ||
\N | ||
0 | ||
\N |
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,9 @@ | ||
DROP TABLE IF EXISTS test.test; | ||
|
||
CREATE TABLE test.test (a UInt8) ENGINE = Memory; | ||
|
||
INSERT INTO test.test VALUES (1), (2), (1), (3); | ||
|
||
SELECT CASE WHEN a=1 THEN 0 END FROM test.test; | ||
|
||
DROP TABLE test.test; |