diff --git a/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.reference b/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.reference new file mode 100644 index 00000000000..8b1acc12b63 --- /dev/null +++ b/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.reference @@ -0,0 +1,10 @@ +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 diff --git a/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.sql b/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.sql new file mode 100644 index 00000000000..fec9105cc6b --- /dev/null +++ b/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.sql @@ -0,0 +1,15 @@ +DROP TABLE IF EXISTS defaults; +CREATE TABLE defaults +( + n Int32 +)ENGINE = Memory(); + +INSERT INTO defaults SELECT * FROM numbers(10); + +SELECT * FROM defaults; + +TRUNCATE defaults; + +SELECT * FROM defaults; + +DROP TABLE defaults;