imay commented on a change in pull request #1614: Fix bug: localtime is not 
thread-safe,then changed to localtime_r.
URL: https://github.com/apache/incubator-doris/pull/1614#discussion_r312001335
 
 

 ##########
 File path: be/src/exec/base_scanner.cpp
 ##########
 @@ -144,12 +145,21 @@ bool BaseScanner::fill_dest_tuple(const Slice& line, 
Tuple* dest_tuple, MemPool*
         ExprContext* ctx = _dest_expr_ctx[dest_index];
         void* value = ctx->get_value(_src_tuple_row);
         if (value == nullptr) {
-            if (_strict_mode && (_src_slot_descs_order_by_dest[dest_index] != 
nullptr)
-                && 
!_src_tuple->is_null(_src_slot_descs_order_by_dest[dest_index]->null_indicator_offset()))
 {
+            SlotDescriptor* slotDescriptor = 
_src_slot_descs_order_by_dest[dest_index];
+            if (_strict_mode && (slotDescriptor != nullptr)&& 
!_src_tuple->is_null(slotDescriptor->null_indicator_offset())) {
+                StringValue* rawValue = 
_src_tuple->get_string_slot(slotDescriptor->tuple_offset());
                 std::stringstream error_msg;
-                error_msg << "column(" << slot_desc->col_name() << ") value is 
incorrect "
-                    << "while strict mode is " << std::boolalpha << 
_strict_mode;
-                _state->append_error_msg_to_file("", error_msg.str());
+                if (rawValue) {//is not null then get raw value
 
 Review comment:
   ```suggestion
                   if (rawValue != nullptr) {//is not null then get raw value
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to