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_r312002886
 
 

 ##########
 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());
 
 Review comment:
   ```suggestion
                   StringValue* raw_value = 
_src_tuple->get_string_slot(slotDescriptor->tuple_offset());
   ```

----------------------------------------------------------------
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