ClickHouse/tests/queries/0_stateless/01353_topk_enum.sql

2 lines
133 B
MySQL
Raw Normal View History

2020-06-29 23:17:20 +00:00
WITH CAST(round(sqrt(number)) % 4 AS Enum('' = 0, 'hello' = 1, 'world' = 2, 'test' = 3)) AS x SELECT topK(10)(x) FROM numbers(1000);