From 36d6d236ad82b761ea0032917109355b3a3224e4 Mon Sep 17 00:00:00 2001 From: Henry2SS <45096548+Henry2SS@users.noreply.github.com> Date: Sun, 16 Jan 2022 10:41:59 +0800 Subject: [PATCH] [refactor] remove duplicate if that will never be used (#7761) --- be/src/exec/csv_scan_node.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/be/src/exec/csv_scan_node.cpp b/be/src/exec/csv_scan_node.cpp index 3759fb208f..f1064004cb 100644 --- a/be/src/exec/csv_scan_node.cpp +++ b/be/src/exec/csv_scan_node.cpp @@ -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(value); int value_to_convert_length = value_length;