mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
8 lines
280 B
MySQL
8 lines
280 B
MySQL
|
-- https://github.com/ClickHouse/ClickHouse/issues/53640
|
||
|
DROP TABLE IF EXISTS tab;
|
||
|
CREATE TABLE tab (i UInt32, a UInt32) ENGINE=Memory;
|
||
|
SELECT i, col1 FROM (
|
||
|
SELECT i, a AS col1, a AS col2 FROM tab ORDER BY i WITH FILL INTERPOLATE (col1 AS col1+col2, col2)
|
||
|
);
|
||
|
DROP TABLE tab;
|