diff --git a/src/Functions/transform.cpp b/src/Functions/transform.cpp index 2cfc17ca40a..28c261c7bf8 100644 --- a/src/Functions/transform.cpp +++ b/src/Functions/transform.cpp @@ -1167,20 +1167,8 @@ private: if (key.isNull()) continue; - // Field may be of Float type, but for the purpose of bitwise - // equality we can treat them as UInt64, hence the reinterpret(). - if (to[0].getType() == Field::Types::Decimal32) - { - table[key.get().getValue()] = (*used_to)[i].get().getValue(); - } - else if (to[0].getType() == Field::Types::Decimal64) - { - table[key.get().getValue()] = (*used_to)[i].get().getValue(); - } - else - { - table[bitCastToUInt64(key)] = bitCastToUInt64((*used_to)[i]); - } + /// Field may be of Float type, but for the purpose of bitwise equality we can treat them as UInt64 + table[bitCastToUInt64(key)] = bitCastToUInt64((*used_to)[i]); } } else diff --git a/src/Interpreters/convertFieldToType.cpp b/src/Interpreters/convertFieldToType.cpp index ab86f500795..4e7562ef451 100644 --- a/src/Interpreters/convertFieldToType.cpp +++ b/src/Interpreters/convertFieldToType.cpp @@ -6,12 +6,9 @@ #include #include #include -#include -#include #include #include #include -#include #include #include #include