Minor style src/Interpreters/TableJoin.cpp

This commit is contained in:
vdimir 2021-06-30 12:40:35 +03:00
parent 2a1c7d7336
commit ac17c0c817
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31

View File

@ -213,7 +213,7 @@ Block TableJoin::getRequiredRightKeys(const Block & right_table_keys, std::vecto
{
const Names & left_keys = keyNamesLeft();
const Names & right_keys = keyNamesRight();
NameSet required_keys(requiredRightKeys().begin(), requiredRightKeys().end());
NameSet required_keys = requiredRightKeys();
Block required_right_keys;
for (size_t i = 0; i < right_keys.size(); ++i)
@ -231,7 +231,6 @@ Block TableJoin::getRequiredRightKeys(const Block & right_table_keys, std::vecto
return required_right_keys;
}
bool TableJoin::leftBecomeNullable(const DataTypePtr & column_type) const
{
return forceNullableLeft() && JoinCommon::canBecomeNullable(column_type);