Describe what's wrong
DROP TABLE IF EXISTS test_final;
CREATE TABLE test_final (a UInt64, b UInt64) ENGINE = ReplacingMergeTree ORDER BY a SETTINGS index_granularity = 1;
INSERT INTO test_final VALUES (1, 1) (1, 2) (2, 3);
INSERT INTO test_final VALUES (2, 3) (5, 4);
OPTIMIZE TABLE test_final FINAL;
SET split_parts_ranges_into_intersecting_and_non_intersecting_final = 1;
SET split_intersecting_parts_ranges_into_layers_final = 0;
SELECT a, b FROM test_final FINAL;
Received exception from server (version 24.12.1):
Code: 49. DB::Exception: Received from localhost:9000. DB::Exception: Cannot add transform to empty Pipe. (LOGICAL_ERROR)