From 7a7f6dbf1336e882facae7bc2c812592f984f3cc Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Thu, 23 Jul 2020 13:23:55 +0300 Subject: [PATCH] Update formatDateTime.cpp --- src/Functions/formatDateTime.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Functions/formatDateTime.cpp b/src/Functions/formatDateTime.cpp index f5d39b4481..b347f7c950 100644 --- a/src/Functions/formatDateTime.cpp +++ b/src/Functions/formatDateTime.cpp @@ -36,20 +36,20 @@ namespace ErrorCodes namespace { // in private namespace to avoid GCC 9 error: "explicit specialization in non-namespace scope" -template struct ActionaValueTypeMap {}; -template <> struct ActionaValueTypeMap { using ActionValueType = UInt32; }; -template <> struct ActionaValueTypeMap { using ActionValueType = UInt32; }; -template <> struct ActionaValueTypeMap { using ActionValueType = UInt32; }; -template <> struct ActionaValueTypeMap { using ActionValueType = UInt32; }; -template <> struct ActionaValueTypeMap { using ActionValueType = UInt32; }; -template <> struct ActionaValueTypeMap { using ActionValueType = UInt32; }; -template <> struct ActionaValueTypeMap { using ActionValueType = UInt32; }; -template <> struct ActionaValueTypeMap { using ActionValueType = UInt32; }; -template <> struct ActionaValueTypeMap { using ActionValueType = UInt16; }; -template <> struct ActionaValueTypeMap { using ActionValueType = UInt32; }; +template struct ActionValueTypeMap {}; +template <> struct ActionValueTypeMap { using ActionValueType = UInt32; }; +template <> struct ActionValueTypeMap { using ActionValueType = UInt32; }; +template <> struct ActionValueTypeMap { using ActionValueType = UInt32; }; +template <> struct ActionValueTypeMap { using ActionValueType = UInt32; }; +template <> struct ActionValueTypeMap { using ActionValueType = UInt32; }; +template <> struct ActionValueTypeMap { using ActionValueType = UInt32; }; +template <> struct ActionValueTypeMap { using ActionValueType = UInt32; }; +template <> struct ActionValueTypeMap { using ActionValueType = UInt32; }; +template <> struct ActionValueTypeMap { using ActionValueType = UInt16; }; +template <> struct ActionValueTypeMap { using ActionValueType = UInt32; }; // TODO(vnemkov): once there is support for Int64 in LUT, make that Int64. // TODO(vnemkov): to add sub-second format instruction, make that DateTime64 and do some math in Action. -template <> struct ActionaValueTypeMap { using ActionValueType = UInt32; }; +template <> struct ActionValueTypeMap { using ActionValueType = UInt32; }; } /** formatDateTime(time, 'pattern') @@ -409,7 +409,7 @@ public: String pattern = pattern_column->getValue(); - using T = typename ActionaValueTypeMap::ActionValueType; + using T = typename ActionValueTypeMap::ActionValueType; std::vector> instructions; String pattern_to_fill = parsePattern(pattern, instructions); size_t result_size = pattern_to_fill.size(); -- GitLab