Do not throw exception if unknwon column met while join rewriting

This commit is contained in:
vdimir 2021-07-29 14:50:48 +03:00
parent d9f55a3f31
commit 593b7e9bbb
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31

View File

@ -551,8 +551,6 @@ std::vector<TableNeededColumns> normalizeColumnNamesExtractNeeded(
else
needed_columns[*table_pos].no_clashes.emplace(ident->shortName());
}
else if (!got_alias)
throw Exception("Unknown column name '" + ident->name() + "'", ErrorCodes::UNKNOWN_IDENTIFIER);
}
return needed_columns;