Merge pull request #21658 from vdimir/fix-joins_in_memory

This commit is contained in:
Vladimir 2021-03-12 22:48:04 +03:00 committed by GitHub
commit b2a6a8feb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ std::optional<size_t> getIdentMembership(const ASTIdentifier & ident, const std:
std::optional<size_t> table_pos = IdentifierSemantic::getMembership(ident); std::optional<size_t> table_pos = IdentifierSemantic::getMembership(ident);
if (table_pos) if (table_pos)
return table_pos; return table_pos;
return IdentifierSemantic::chooseTableColumnMatch(ident, tables); return IdentifierSemantic::chooseTableColumnMatch(ident, tables, true);
} }
std::optional<size_t> getIdentsMembership(const ASTPtr ast, std::optional<size_t> getIdentsMembership(const ASTPtr ast,