diff --git a/src/DataTypes/DataTypeUUID.h b/src/DataTypes/DataTypeUUID.h index 70104a03478..5ed7a912607 100644 --- a/src/DataTypes/DataTypeUUID.h +++ b/src/DataTypes/DataTypeUUID.h @@ -35,6 +35,7 @@ public: bool textCanContainOnlyValidUTF8() const override { return true; } bool isComparable() const override { return true; } bool isValueUnambiguouslyRepresentedInContiguousMemoryRegion() const override { return true; } + bool isValueUnambiguouslyRepresentedInFixedSizeContiguousMemoryRegion() const override { return true; } bool haveMaximumSizeOfValue() const override { return true; } size_t getSizeOfValueInMemory() const override { return sizeof(UUID); } bool isCategorial() const override { return true; } diff --git a/tests/queries/0_stateless/01869_reinterpret_as_fixed_string_uuid.reference b/tests/queries/0_stateless/01869_reinterpret_as_fixed_string_uuid.reference new file mode 100644 index 00000000000..d9ca990623e --- /dev/null +++ b/tests/queries/0_stateless/01869_reinterpret_as_fixed_string_uuid.reference @@ -0,0 +1 @@ +E711B35C04C4F061A0DBD36A00A67B90 diff --git a/tests/queries/0_stateless/01869_reinterpret_as_fixed_string_uuid.sql b/tests/queries/0_stateless/01869_reinterpret_as_fixed_string_uuid.sql new file mode 100644 index 00000000000..f6cf90c372c --- /dev/null +++ b/tests/queries/0_stateless/01869_reinterpret_as_fixed_string_uuid.sql @@ -0,0 +1 @@ +SELECT hex(reinterpretAsFixedString(toUUID('61f0c404-5cb3-11e7-907b-a6006ad3dba0')));