mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-30 05:30:51 +00:00
cleanup
This commit is contained in:
parent
4bf2e94fa4
commit
3166f0cbfc
@ -588,7 +588,7 @@ static bool tryParseFrameDefinition(ASTWindowDefinition * node, IParser::Pos & p
|
|||||||
&& value.get<Int64>() >= 0)))
|
&& value.get<Int64>() >= 0)))
|
||||||
{
|
{
|
||||||
throw Exception(ErrorCodes::BAD_ARGUMENTS,
|
throw Exception(ErrorCodes::BAD_ARGUMENTS,
|
||||||
"Frame offset for '{}' frame must be a nonnegative integer, '{}' of type '{}' given.",
|
"Frame offset for '{}' frame must be a nonnegative integer, '{}' of type '{}' given.",
|
||||||
WindowFrame::toString(node->frame.type),
|
WindowFrame::toString(node->frame.type),
|
||||||
applyVisitor(FieldVisitorToString(), value),
|
applyVisitor(FieldVisitorToString(), value),
|
||||||
Field::Types::toString(value.getType()));
|
Field::Types::toString(value.getType()));
|
||||||
@ -649,7 +649,7 @@ static bool tryParseFrameDefinition(ASTWindowDefinition * node, IParser::Pos & p
|
|||||||
&& value.get<Int64>() >= 0)))
|
&& value.get<Int64>() >= 0)))
|
||||||
{
|
{
|
||||||
throw Exception(ErrorCodes::BAD_ARGUMENTS,
|
throw Exception(ErrorCodes::BAD_ARGUMENTS,
|
||||||
"Frame offset for '{}' frame must be a nonnegative integer, '{}' of type '{}' given.",
|
"Frame offset for '{}' frame must be a nonnegative integer, '{}' of type '{}' given.",
|
||||||
WindowFrame::toString(node->frame.type),
|
WindowFrame::toString(node->frame.type),
|
||||||
applyVisitor(FieldVisitorToString(), value),
|
applyVisitor(FieldVisitorToString(), value),
|
||||||
Field::Types::toString(value.getType()));
|
Field::Types::toString(value.getType()));
|
||||||
|
@ -1463,9 +1463,9 @@ struct WindowFunctionLagLeadInFrame final : public WindowFunction
|
|||||||
void windowInsertResultInto(const WindowTransform * transform,
|
void windowInsertResultInto(const WindowTransform * transform,
|
||||||
size_t function_index) override
|
size_t function_index) override
|
||||||
{
|
{
|
||||||
auto & current_block = transform->blockAt(transform->current_row);
|
const auto & current_block = transform->blockAt(transform->current_row);
|
||||||
IColumn & to = *current_block.output_columns[function_index];
|
IColumn & to = *current_block.output_columns[function_index];
|
||||||
auto & workspace = transform->workspaces[function_index];
|
const auto & workspace = transform->workspaces[function_index];
|
||||||
|
|
||||||
int offset = 1;
|
int offset = 1;
|
||||||
if (argument_types.size() > 1)
|
if (argument_types.size() > 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user