diff --git a/tests/queries/0_stateless/03228_param_view_metadata_columns.reference b/tests/queries/0_stateless/03228_param_view_metadata_columns.reference index f1a9e1df1c8..338e4bf9629 100644 --- a/tests/queries/0_stateless/03228_param_view_metadata_columns.reference +++ b/tests/queries/0_stateless/03228_param_view_metadata_columns.reference @@ -6,3 +6,4 @@ CAST(dummy, \'Int\') Int32 CAST(dummy, \'String\') String 0 55 +45 diff --git a/tests/queries/0_stateless/03228_param_view_metadata_columns.sql b/tests/queries/0_stateless/03228_param_view_metadata_columns.sql index 98f80f26c1a..e6197aff45a 100644 --- a/tests/queries/0_stateless/03228_param_view_metadata_columns.sql +++ b/tests/queries/0_stateless/03228_param_view_metadata_columns.sql @@ -17,3 +17,6 @@ describe (SELECT * FROM p3(t = 'Int64') union all SELECT * FROM p3(t = 'UInt64') SELECT * FROM p3(t = 'String'); select arrayReduce('sum', (select groupArray(number) from paramview(top=10))); + +create view test_pv as select number from numbers({limit:UInt64}); +with (select sum(number) from test_pv(limit=10)) as sm select sm;