From b8c9b2a8e9e5b6b07bff77a7d3ce8cf71b1e3f07 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Wed, 9 Jun 2021 16:56:17 +0300 Subject: [PATCH] Update test. --- .../queries/0_stateless/01891_partition_by_uuid.reference | 1 + tests/queries/0_stateless/01891_partition_by_uuid.sql | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/queries/0_stateless/01891_partition_by_uuid.reference create mode 100644 tests/queries/0_stateless/01891_partition_by_uuid.sql diff --git a/tests/queries/0_stateless/01891_partition_by_uuid.reference b/tests/queries/0_stateless/01891_partition_by_uuid.reference new file mode 100644 index 00000000000..1835863e7ff --- /dev/null +++ b/tests/queries/0_stateless/01891_partition_by_uuid.reference @@ -0,0 +1 @@ +48406fdb38e23228b776558b4edfa795 diff --git a/tests/queries/0_stateless/01891_partition_by_uuid.sql b/tests/queries/0_stateless/01891_partition_by_uuid.sql new file mode 100644 index 00000000000..19abbb2ebdb --- /dev/null +++ b/tests/queries/0_stateless/01891_partition_by_uuid.sql @@ -0,0 +1,7 @@ +drop table if exists tab; +create table tab (id UUID, value UInt32) engine = MergeTree PARTITION BY id order by tuple(); +insert into tab values ('61f0c404-5cb3-11e7-907b-a6006ad3dba0', 1), ('61f0c404-5cb3-11e7-907b-a6006ad3dba0', 2); +-- Here we check that partition id for UUID partition key did not change. +-- Different result means Backward Incompatible Change. Old partitions will not be accepted by new server. +select partition_id from system.parts where table = 'tab' and database = currentDatabase(); +drop table if exists tab;