Skip to content

Commit

Permalink
Fix build due to ClickHouse/ClickHouse#60556
Browse files Browse the repository at this point in the history
  • Loading branch information
baibaichen committed Jun 15, 2024
1 parent e09c4b5 commit c0de850
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,12 @@ bool ExcelTextFormatReader::readField(
return false;
}

if (column_size == column.size())
// See https://github.com/ClickHouse/ClickHouse/pull/60556
// In case of failing to parse, we will always push element into nullmap.
// so, we need using nestedColumn to check if error occurs.
/// FIXME: move it to ExcelSerialization ???
const auto nestedColumn = DB::removeNullable(column.getPtr());
if (column_size == nestedColumn->size())
{
skipErrorChars(*buf, has_quote, maybe_quote, escape, format_settings);
column_back_func(column);
Expand Down

0 comments on commit c0de850

Please sign in to comment.