[refactor] remove duplicate if that will never be used (#7761)

This commit is contained in:
Henry2SS
2022-01-16 10:41:59 +08:00
committed by GitHub
parent 5f8d91257b
commit 36d6d236ad

View File

@ -471,13 +471,6 @@ bool CsvScanNode::check_and_write_text_slot(const std::string& column_name,
}
}
if (!slot->is_nullable() && is_null(value, value_length)) {
(*error_msg) << "value cannot be null. column name: " << column_name
<< "; type: " << slot->type() << "; input_str: ["
<< std::string(value, value_length) << "].";
return false;
}
char* value_to_convert = const_cast<char*>(value);
int value_to_convert_length = value_length;