diff --git a/dbms/tests/queries/0_stateless/00594_alias_in_distributed.reference b/dbms/tests/queries/0_stateless/00594_alias_in_distributed.reference index 12d58133e97..194cd8cd230 100644 --- a/dbms/tests/queries/0_stateless/00594_alias_in_distributed.reference +++ b/dbms/tests/queries/0_stateless/00594_alias_in_distributed.reference @@ -28,6 +28,9 @@ 12345 0 0 +1 +12345 +12345 1 12345 12345 2 54321 0 0 0 @@ -58,3 +61,6 @@ 12345 0 0 +1 +12345 +12345 diff --git a/dbms/tests/queries/0_stateless/00594_alias_in_distributed.sql b/dbms/tests/queries/0_stateless/00594_alias_in_distributed.sql index 901b90dcb3b..54e47c78942 100644 --- a/dbms/tests/queries/0_stateless/00594_alias_in_distributed.sql +++ b/dbms/tests/queries/0_stateless/00594_alias_in_distributed.sql @@ -26,6 +26,10 @@ SELECT field3 FROM test.alias10 WHERE EventDate='2000-01-01'; SELECT field2, field3 FROM test.alias10; SELECT field3 FROM test.alias10; +SELECT field1 FROM test.alias10 WHERE field3 = '12345'; +SELECT field2 FROM test.alias10 WHERE field3 = '12345'; +SELECT field3 FROM test.alias10 WHERE field3 = '12345'; + DROP TABLE test.alias10; CREATE TABLE test.alias10 ( Id Int8, @@ -48,5 +52,9 @@ SELECT field3 FROM test.alias10 WHERE EventDate='2000-01-01'; SELECT field2, field3 FROM test.alias10; SELECT field3 FROM test.alias10; +SELECT field1 FROM test.alias10 WHERE field3 = '12345'; +SELECT field2 FROM test.alias10 WHERE field3 = '12345'; +SELECT field3 FROM test.alias10 WHERE field3 = '12345'; + DROP TABLE test.alias_local10; DROP TABLE test.alias10;