diff --git a/dbms/tests/queries/0_stateless/00625_arrays_in_nested.reference b/dbms/tests/queries/0_stateless/00625_arrays_in_nested.reference index a356bbf1cdc..b016e4f738c 100644 --- a/dbms/tests/queries/0_stateless/00625_arrays_in_nested.reference +++ b/dbms/tests/queries/0_stateless/00625_arrays_in_nested.reference @@ -1,4 +1,10 @@ -['Hello','World'] [['a'],['b','c']] [['PU','US'],['OTHER']] +['Hello','World'] [['a'],['b','c']] [['PU','US'],['OTHER']] +['Hello','World'] [['a'],['b','c']] [['PU','US'],['OTHER']] +['GoodBye'] [['1','2']] [['PU','US','OTHER']] +['Hello','World'] [['a'],['b','c']] [['PU','US'],['OTHER']] +['GoodBye'] [['1','2']] [['PU','US','OTHER']] +['Hello','World'] [['a'],['b','c']] [['PU','US'],['OTHER']] +['GoodBye'] [['1','2']] [['PU','US','OTHER']] ['Hello','World'] [['a'],['b','c']] [['PU','US'],['OTHER']] ['Hello','World'] [['a'],['b','c']] [['PU','US'],['OTHER']] ['Hello','World'] [['a'],['b','c']] [['PU','US'],['OTHER']] diff --git a/dbms/tests/queries/0_stateless/00625_arrays_in_nested.sql b/dbms/tests/queries/0_stateless/00625_arrays_in_nested.sql index 81f7b046e38..7be1004131e 100644 --- a/dbms/tests/queries/0_stateless/00625_arrays_in_nested.sql +++ b/dbms/tests/queries/0_stateless/00625_arrays_in_nested.sql @@ -20,6 +20,17 @@ ATTACH TABLE nested; SELECT * FROM nested; +INSERT INTO nested VALUES (['GoodBye'], [['1', '2']], [['PU', 'US', 'OTHER']]); + +SELECT * FROM nested ORDER BY column.name; +OPTIMIZE TABLE nested PARTITION tuple() FINAL; +SELECT * FROM nested ORDER BY column.name; + +DETACH TABLE nested; +ATTACH TABLE nested; + +SELECT * FROM nested ORDER BY column.name; + DROP TABLE IF EXISTS nested; CREATE TABLE nested