This commit is contained in:
Nikita Mikhailov 2021-01-13 18:15:32 +03:00
parent d58a8c98aa
commit ded35fe5b0

View File

@ -230,16 +230,8 @@ void TableJoin::addJoinedColumn(const NameAndTypePair & joined_column)
void TableJoin::addJoinedColumnsAndCorrectNullability(ColumnsWithTypeAndName & columns) const
{
for (auto & col : columns)
{
/// Materialize column.
/// Column is not empty if it is constant, but after Join all constants will be materialized.
/// So, we need remove constants from header.
// if (col.column)
// col.column = nullptr;
if (leftBecomeNullable(col.type))
col.type = makeNullable(col.type);
}
for (const auto & col : columns_added_by_join)
{