From 26b8d4c4807e0160c5dd87b2882462aca65bc080 Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Fri, 1 Oct 2021 17:10:28 +0300 Subject: [PATCH] Fixed test --- tests/queries/0_stateless/02036_jit_short_circuit.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/queries/0_stateless/02036_jit_short_circuit.sql b/tests/queries/0_stateless/02036_jit_short_circuit.sql index db386ffdff3..18faf701a84 100644 --- a/tests/queries/0_stateless/02036_jit_short_circuit.sql +++ b/tests/queries/0_stateless/02036_jit_short_circuit.sql @@ -7,8 +7,6 @@ CREATE TABLE test_table (message String) ENGINE=TinyLog; INSERT INTO test_table VALUES ('Test'); -SELECT if(action = 'bonus', sport_amount, 0) * 100 FROM - (SELECT JSONExtract(message, 'action', 'String') AS action, - JSONExtract(message, 'sport_amount', 'Float64') AS sport_amount FROM test_table); +SELECT if(action = 'bonus', sport_amount, 0) * 100 FROM (SELECT message AS action, cast(message, 'Float64') AS sport_amount FROM test_table); DROP TABLE test_table;