From ee4f44c6753b3979c544d55faca894226ec74da4 Mon Sep 17 00:00:00 2001 From: Zhichao Zhang Date: Thu, 4 Jul 2024 17:16:56 +0800 Subject: [PATCH] add the namespace --- .../Parser/aggregate_function_parser/NtileParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp-ch/local-engine/Parser/aggregate_function_parser/NtileParser.cpp b/cpp-ch/local-engine/Parser/aggregate_function_parser/NtileParser.cpp index e2eb30a41126..49a59c6570fb 100644 --- a/cpp-ch/local-engine/Parser/aggregate_function_parser/NtileParser.cpp +++ b/cpp-ch/local-engine/Parser/aggregate_function_parser/NtileParser.cpp @@ -30,7 +30,7 @@ NtileParser::parseFunctionArguments(const CommonFunctionInfo & func_info, const const auto & arg0 = func_info.arguments[0].value(); auto [data_type, field] = parseLiteral(arg0.literal()); - if (!(WhichDataType(data_type).isInt32())) + if (!(DB::WhichDataType(data_type).isInt32())) throw Exception(ErrorCodes::BAD_ARGUMENTS, "ntile's argument must be i32"); Int32 field_index = static_cast(field.get()); // For CH, the data type of the args[0] must be the UInt32