mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Apply suggestions from code review
This commit is contained in:
parent
3b82c36049
commit
19e2cbcabc
@ -191,7 +191,7 @@ private:
|
||||
ASTTableJoin * table_join = node.table_join->as<ASTTableJoin>();
|
||||
if (table_join->locality != ASTTableJoin::Locality::Global)
|
||||
{
|
||||
if (auto table = node.table_expression->as<ASTTableExpression>())
|
||||
if (auto * table = node.table_expression->as<ASTTableExpression>())
|
||||
{
|
||||
if (auto & subquery = table->subquery)
|
||||
{
|
||||
@ -207,7 +207,7 @@ private:
|
||||
std::vector<ASTPtr> renamed;
|
||||
NonGlobalTableVisitor::Data table_data{data.getContext(), data.checker, renamed, nullptr, table_join};
|
||||
NonGlobalTableVisitor(table_data).visit(tb);
|
||||
if (!renamed.empty())
|
||||
if (!renamed.empty()) //-V547
|
||||
data.renamed_tables.emplace_back(tb, std::move(renamed));
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
-- Tags: global, no-parallel
|
||||
CREATE DATABASE IF NOT EXISTS test_02115;
|
||||
USE test_02115;
|
||||
|
||||
@ -29,4 +30,4 @@ DROP TABLE t1_local;
|
||||
DROP TABLE t2_local;
|
||||
DROP TABLE t1_all;
|
||||
DROP TABLE t2_all;
|
||||
DROP DATABASE test_02115;
|
||||
DROP DATABASE test_02115;
|
||||
|
Loading…
Reference in New Issue
Block a user