ClickHouse/tests/queries/0_stateless/03033_with_fill_interpolate.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
490 B
MySQL
Raw Normal View History

2024-04-02 15:47:48 +00:00
-- https://github.com/ClickHouse/ClickHouse/issues/55794
2024-07-12 12:49:26 +00:00
SET enable_analyzer=1;
2024-04-02 15:47:48 +00:00
DROP TABLE IF EXISTS 03033_example_table;
CREATE TABLE 03033_example_table
(
ColumnA Int64,
ColumnB Int64,
ColumnC Int64
)
ENGINE = MergeTree()
ORDER BY ColumnA;
WITH
helper AS (
SELECT
*
FROM
03033_example_table
ORDER BY
ColumnA WITH FILL INTERPOLATE (
ColumnB AS ColumnC,
ColumnC AS ColumnA
)
)
SELECT ColumnB FROM helper;
DROP TABLE IF EXISTS 03033_example_table;