mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Fixed test
This commit is contained in:
parent
47f14d3ea6
commit
26b8d4c480
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user