mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
11 lines
484 B
SQL
11 lines
484 B
SQL
DROP TABLE IF EXISTS columns_transformers;
|
|
|
|
CREATE TABLE columns_transformers (i int, j int, k int, a_bytes int, b_bytes int, c_bytes int) Engine=TinyLog;
|
|
INSERT INTO columns_transformers VALUES (100, 10, 324, 120, 8, 23);
|
|
SELECT * EXCEPT 'bytes', COLUMNS('bytes') APPLY formatReadableSize FROM columns_transformers;
|
|
|
|
DROP TABLE IF EXISTS columns_transformers;
|
|
|
|
SELECT * APPLY x->argMax(x, number) FROM numbers(1);
|
|
EXPLAIN SYNTAX SELECT * APPLY x->argMax(x, number) FROM numbers(1);
|