This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 36d6d23  [refactor] remove duplicate if that will never be used (#7761)
36d6d23 is described below

commit 36d6d236ad82b761ea0032917109355b3a3224e4
Author: Henry2SS <[email protected]>
AuthorDate: Sun Jan 16 10:41:59 2022 +0800

    [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 3759fb2..f106400 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<char*>(value);
     int value_to_convert_length = value_length;
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to