diff --git a/src/Parsers/ExpressionListParsers.cpp b/src/Parsers/ExpressionListParsers.cpp index 467efdaf035..c5ea1bb65c3 100644 --- a/src/Parsers/ExpressionListParsers.cpp +++ b/src/Parsers/ExpressionListParsers.cpp @@ -2180,7 +2180,7 @@ private: bool if_permitted; }; -/// Layer for table function 'kql' +/// Layer for table function 'kql' class KustoLayer : public Layer { public: diff --git a/src/Parsers/Kusto/KustoFunctions/KQLDateTimeFunctions.cpp b/src/Parsers/Kusto/KustoFunctions/KQLDateTimeFunctions.cpp index d51064895a0..9f2b7265952 100644 --- a/src/Parsers/Kusto/KustoFunctions/KQLDateTimeFunctions.cpp +++ b/src/Parsers/Kusto/KustoFunctions/KQLDateTimeFunctions.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -15,12 +16,11 @@ #include #include #include -#include namespace DB::ErrorCodes { - extern const int BAD_ARGUMENTS; - extern const int SYNTAX_ERROR; +extern const int BAD_ARGUMENTS; +extern const int SYNTAX_ERROR; } namespace DB { @@ -326,7 +326,7 @@ bool FormatDateTime::convertImpl(String & out, IParser::Pos & pos) else if (arg.starts_with('f') || arg.starts_with('F')) decimal = arg.size(); else - throw Exception( ErrorCodes::SYNTAX_ERROR, "Format specifier {} in function: {} is not supported",arg, fn_name); + throw Exception(ErrorCodes::SYNTAX_ERROR, "Format specifier {} in function: {} is not supported", arg, fn_name); res.pop_back(); i = i + arg.size(); } @@ -385,7 +385,7 @@ bool FormatTimeSpan::convertImpl(String & out, IParser::Pos & pos) if (c == ' ' || c == '-' || c == '_' || c == '[' || c == ']' || c == '/' || c == ',' || c == '.' || c == ':') formatspecifier = formatspecifier + c; else - throw Exception( ErrorCodes::SYNTAX_ERROR, "Invalid format delimiter in function: {}", fn_name); + throw Exception(ErrorCodes::SYNTAX_ERROR, "Invalid format delimiter in function: {}", fn_name); ++i; } else diff --git a/src/Parsers/Kusto/ParserKQLMVExpand.cpp b/src/Parsers/Kusto/ParserKQLMVExpand.cpp index 0d6eaeb5f34..bf5fbe64d0b 100644 --- a/src/Parsers/Kusto/ParserKQLMVExpand.cpp +++ b/src/Parsers/Kusto/ParserKQLMVExpand.cpp @@ -94,7 +94,7 @@ bool ParserKQLMVExpand::parseColumnArrayExprs(ColumnArrayExprs & column_array_ex to_type = String(pos->begin, pos->end); if (type_cast.find(to_type) == type_cast.end()) - throw Exception(ErrorCodes::UNKNOWN_TYPE, "{} is not a supported kusto data type for mv-expand", to_type ); + throw Exception(ErrorCodes::UNKNOWN_TYPE, "{} is not a supported kusto data type for mv-expand", to_type); ++pos; if (!close_bracket.ignore(pos, expected))