ClickHouse/tests/queries/0_stateless/02932_non_ready_set_stuck.sql
Nikolai Kochetov 6d9e7f98a1 Add a test
2023-12-01 13:28:51 +00:00

3 lines
314 B
SQL

CREATE TABLE tab (item_id UInt64, price_sold Nullable(Float32), date Date) ENGINE = MergeTree ORDER BY item_id;
SELECT * FROM (SELECT item_id FROM tab GROUP BY item_id WITH TOTALS ORDER BY '922337203.6854775806' IN (SELECT NULL)) AS l RIGHT JOIN (SELECT item_id FROM tab) AS r ON l.item_id = r.item_id WHERE NULL;