mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Kusto-phase2: fix style, remove trailing whitespaces
This commit is contained in:
parent
c9e180cc87
commit
bfb6184ccf
@ -2180,7 +2180,7 @@ private:
|
|||||||
bool if_permitted;
|
bool if_permitted;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Layer for table function 'kql'
|
/// Layer for table function 'kql'
|
||||||
class KustoLayer : public Layer
|
class KustoLayer : public Layer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <format>
|
||||||
#include <regex>
|
#include <regex>
|
||||||
#include <Parsers/ASTExpressionList.h>
|
#include <Parsers/ASTExpressionList.h>
|
||||||
#include <Parsers/ASTSelectWithUnionQuery.h>
|
#include <Parsers/ASTSelectWithUnionQuery.h>
|
||||||
@ -15,12 +16,11 @@
|
|||||||
#include <Parsers/Kusto/ParserKQLQuery.h>
|
#include <Parsers/Kusto/ParserKQLQuery.h>
|
||||||
#include <Parsers/Kusto/ParserKQLStatement.h>
|
#include <Parsers/Kusto/ParserKQLStatement.h>
|
||||||
#include <Parsers/ParserSetQuery.h>
|
#include <Parsers/ParserSetQuery.h>
|
||||||
#include <format>
|
|
||||||
|
|
||||||
namespace DB::ErrorCodes
|
namespace DB::ErrorCodes
|
||||||
{
|
{
|
||||||
extern const int BAD_ARGUMENTS;
|
extern const int BAD_ARGUMENTS;
|
||||||
extern const int SYNTAX_ERROR;
|
extern const int SYNTAX_ERROR;
|
||||||
}
|
}
|
||||||
namespace DB
|
namespace DB
|
||||||
{
|
{
|
||||||
@ -326,7 +326,7 @@ bool FormatDateTime::convertImpl(String & out, IParser::Pos & pos)
|
|||||||
else if (arg.starts_with('f') || arg.starts_with('F'))
|
else if (arg.starts_with('f') || arg.starts_with('F'))
|
||||||
decimal = arg.size();
|
decimal = arg.size();
|
||||||
else
|
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();
|
res.pop_back();
|
||||||
i = i + arg.size();
|
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 == ':')
|
if (c == ' ' || c == '-' || c == '_' || c == '[' || c == ']' || c == '/' || c == ',' || c == '.' || c == ':')
|
||||||
formatspecifier = formatspecifier + c;
|
formatspecifier = formatspecifier + c;
|
||||||
else
|
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;
|
++i;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -94,7 +94,7 @@ bool ParserKQLMVExpand::parseColumnArrayExprs(ColumnArrayExprs & column_array_ex
|
|||||||
to_type = String(pos->begin, pos->end);
|
to_type = String(pos->begin, pos->end);
|
||||||
|
|
||||||
if (type_cast.find(to_type) == type_cast.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;
|
++pos;
|
||||||
if (!close_bracket.ignore(pos, expected))
|
if (!close_bracket.ignore(pos, expected))
|
||||||
|
Loading…
Reference in New Issue
Block a user