ClickHouse/tests/queries/0_stateless/03204_storage_join_optimize.sql
Duc Canh Le 24e1bfdb68 Join engine support OPTIMIZE query
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2024-08-06 07:37:00 +00:00

6 lines
224 B
SQL

CREATE TABLE dict_03204 (k UInt64, v UInt64) ENGINE = Join(ANY, LEFT, k);
INSERT INTO dict_03204 SELECT number, number FROM numbers(10);
OPTIMIZE TABLE dict_03204;
SELECT * FROM dict_03204 ORDER BY k;
DROP TABLE dict_03204;