From 84420eefef7728f09c44e1e8c72202145058f638 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 14 Mar 2019 04:11:07 +0300 Subject: [PATCH] Fixed test #4654. --- .../0_stateless/00916_create_or_replace_view.reference | 2 +- .../queries/0_stateless/00916_create_or_replace_view.sql | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dbms/tests/queries/0_stateless/00916_create_or_replace_view.reference b/dbms/tests/queries/0_stateless/00916_create_or_replace_view.reference index 67943761a47..c8e912a9a45 100644 --- a/dbms/tests/queries/0_stateless/00916_create_or_replace_view.reference +++ b/dbms/tests/queries/0_stateless/00916_create_or_replace_view.reference @@ -1,2 +1,2 @@ CREATE VIEW test.t ( number UInt64) AS SELECT number FROM system.numbers -CREATE VIEW test.t ( next_number UInt64) AS SELECT number + 1 FROM system.numbers +CREATE VIEW test.t ( next_number UInt64) AS SELECT number + 1 AS next_number FROM system.numbers diff --git a/dbms/tests/queries/0_stateless/00916_create_or_replace_view.sql b/dbms/tests/queries/0_stateless/00916_create_or_replace_view.sql index a246a53cf50..af658ac96f5 100644 --- a/dbms/tests/queries/0_stateless/00916_create_or_replace_view.sql +++ b/dbms/tests/queries/0_stateless/00916_create_or_replace_view.sql @@ -2,5 +2,8 @@ DROP TABLE IF EXISTS test.t; CREATE OR REPLACE VIEW test.t (number UInt64) AS SELECT number FROM system.numbers; SHOW CREATE TABLE test.t; -CREATE OR REPLACE VIEW test.t (next_number UInt64) AS SELECT number+1 FROM system.numbers; + +CREATE OR REPLACE VIEW test.t AS SELECT number+1 AS next_number FROM system.numbers; SHOW CREATE TABLE test.t; + +DROP TABLE test.t;