mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added a test
This commit is contained in:
parent
ba6dbb4bb2
commit
35f0e68892
@ -0,0 +1,4 @@
|
||||
SELECT if(number = 1, \'hello\', if(number = 2, \'world\', \'xyz\'))
|
||||
FROM numbers(10)
|
||||
SELECT multiIf(number = 1, \'hello\', number = 2, \'world\', \'xyz\')
|
||||
FROM numbers(10)
|
@ -0,0 +1,5 @@
|
||||
-- If you are reading this test please note that as of now this setting does not provide benefits in most of the cases.
|
||||
SET optimize_if_chain_to_multiif = 0;
|
||||
EXPLAIN SYNTAX SELECT number = 1 ? 'hello' : (number = 2 ? 'world' : 'xyz') FROM numbers(10);
|
||||
SET optimize_if_chain_to_multiif = 1;
|
||||
EXPLAIN SYNTAX SELECT number = 1 ? 'hello' : (number = 2 ? 'world' : 'xyz') FROM numbers(10);
|
Loading…
Reference in New Issue
Block a user