Fixed test

This commit is contained in:
Maksim Kita 2021-10-01 17:10:28 +03:00
parent 47f14d3ea6
commit 26b8d4c480

View File

@ -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;