mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
rename var
This commit is contained in:
parent
f2ef27e5d6
commit
6c2d78b802
@ -421,8 +421,8 @@ UInt32 StorageWindowView::getCleanupBound()
|
|||||||
|
|
||||||
ASTPtr StorageWindowView::getCleanupQuery()
|
ASTPtr StorageWindowView::getCleanupQuery()
|
||||||
{
|
{
|
||||||
ASTPtr function_equal;
|
ASTPtr function_less;
|
||||||
function_equal = makeASTFunction(
|
function_less= makeASTFunction(
|
||||||
"less",
|
"less",
|
||||||
std::make_shared<ASTIdentifier>(window_id_name),
|
std::make_shared<ASTIdentifier>(window_id_name),
|
||||||
std::make_shared<ASTLiteral>(getCleanupBound()));
|
std::make_shared<ASTLiteral>(getCleanupBound()));
|
||||||
@ -436,7 +436,7 @@ ASTPtr StorageWindowView::getCleanupQuery()
|
|||||||
|
|
||||||
auto alter_command = std::make_shared<ASTAlterCommand>();
|
auto alter_command = std::make_shared<ASTAlterCommand>();
|
||||||
alter_command->type = ASTAlterCommand::DELETE;
|
alter_command->type = ASTAlterCommand::DELETE;
|
||||||
alter_command->predicate = function_equal;
|
alter_command->predicate = function_less;
|
||||||
alter_command->children.push_back(alter_command->predicate);
|
alter_command->children.push_back(alter_command->predicate);
|
||||||
alter_query->command_list->children.push_back(alter_command);
|
alter_query->command_list->children.push_back(alter_command);
|
||||||
return alter_query;
|
return alter_query;
|
||||||
|
Loading…
Reference in New Issue
Block a user