ClickHouse/tests/queries/0_stateless/02036_jit_short_circuit.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
417 B
MySQL
Raw Normal View History

2021-09-30 18:20:15 +00:00
SET compile_expressions = 1;
SET min_count_to_compile_expression = 0;
SET short_circuit_function_evaluation='enable';
DROP TABLE IF EXISTS test_table;
CREATE TABLE test_table (message String) ENGINE=TinyLog;
INSERT INTO test_table VALUES ('Test');
2021-10-01 14:10:28 +00:00
SELECT if(action = 'bonus', sport_amount, 0) * 100 FROM (SELECT message AS action, cast(message, 'Float64') AS sport_amount FROM test_table);
2021-09-30 18:20:15 +00:00
DROP TABLE test_table;