From 0d6f9c08165715fddecaebcd45e05ffe15b7146f Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 22 Apr 2021 10:29:03 +0300 Subject: [PATCH] Add a test for writeSuffix() via Memory engine --- .../0_stateless/01832_memory_write_suffix.reference | 1 + tests/queries/0_stateless/01832_memory_write_suffix.sql | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/queries/0_stateless/01832_memory_write_suffix.reference create mode 100644 tests/queries/0_stateless/01832_memory_write_suffix.sql diff --git a/tests/queries/0_stateless/01832_memory_write_suffix.reference b/tests/queries/0_stateless/01832_memory_write_suffix.reference new file mode 100644 index 00000000000..d00491fd7e5 --- /dev/null +++ b/tests/queries/0_stateless/01832_memory_write_suffix.reference @@ -0,0 +1 @@ +1 diff --git a/tests/queries/0_stateless/01832_memory_write_suffix.sql b/tests/queries/0_stateless/01832_memory_write_suffix.sql new file mode 100644 index 00000000000..718a4e4ac9d --- /dev/null +++ b/tests/queries/0_stateless/01832_memory_write_suffix.sql @@ -0,0 +1,7 @@ +drop table if exists data_01832; + +-- Memory writes from the writeSuffix() and if it will be called twice two rows +-- will be written (since it does not reset the block). +create table data_01832 (key Int) Engine=Memory; +insert into data_01832 values (1); +select * from data_01832;