mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
update code style
This commit is contained in:
parent
635870f50c
commit
b56d471540
File diff suppressed because it is too large
Load Diff
@ -165,8 +165,8 @@ namespace
|
||||
{
|
||||
if (auto * t = ast->as<ASTFunction>())
|
||||
{
|
||||
if (t->name == "HOP" || t->name == "TUMBLE")
|
||||
t->name = "WINDOW_ID";
|
||||
if (t->name == "HOP" || t->name == "TUMBLE")
|
||||
t->name = "WINDOW_ID";
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -205,7 +205,10 @@ namespace
|
||||
static void visit(const ASTIdentifier & node, ASTPtr & node_ptr, Data & data)
|
||||
{
|
||||
if (node.getColumnName() == data.window_id_alias)
|
||||
dynamic_cast<ASTIdentifier *>(node_ptr.get())->setShortName(data.window_id_name);
|
||||
{
|
||||
if (auto identifier = std::dynamic_pointer_cast<ASTIdentifier>(node_ptr))
|
||||
identifier->setShortName(data.window_id_name);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
0
tests/queries/0_stateless/01052_window_view_proc_tumble_to_now.sql
Executable file → Normal file
0
tests/queries/0_stateless/01052_window_view_proc_tumble_to_now.sql
Executable file → Normal file
0
tests/queries/0_stateless/01053_window_view_proc_hop_to_now.sql
Executable file → Normal file
0
tests/queries/0_stateless/01053_window_view_proc_hop_to_now.sql
Executable file → Normal file
0
tests/queries/0_stateless/01054_window_view_proc_tumble_to.sql
Executable file → Normal file
0
tests/queries/0_stateless/01054_window_view_proc_tumble_to.sql
Executable file → Normal file
0
tests/queries/0_stateless/01055_window_view_proc_hop_to.sql
Executable file → Normal file
0
tests/queries/0_stateless/01055_window_view_proc_hop_to.sql
Executable file → Normal file
Loading…
Reference in New Issue
Block a user