EmmyMiao87 commented on a change in pull request #8448:
URL: https://github.com/apache/incubator-doris/pull/8448#discussion_r826720278



##########
File path: be/src/exec/table_function_node.cpp
##########
@@ -266,22 +268,27 @@ Status TableFunctionNode::get_next(RuntimeState* state, 
RowBatch* row_batch, boo
                 TupleDescriptor* child_tuple_desc = 
child_rowdesc.tuple_descriptors()[tuple_idx];
                 TupleDescriptor* parent_tuple_desc = 
parent_rowdesc.tuple_descriptors()[tuple_idx];
 
-                Tuple* child_tuple = 
_cur_child_tuple_row->get_tuple(child_rowdesc.get_tuple_idx(child_tuple_desc->id()));
+                Tuple* child_tuple = _cur_child_tuple_row->get_tuple(
+                        child_rowdesc.get_tuple_idx(child_tuple_desc->id()));
                 for (int j = 0; j < _child_slot_sizes[i]; ++j) {
                     SlotDescriptor* child_slot_desc = 
child_tuple_desc->slots()[j];
                     SlotDescriptor* parent_slot_desc = 
parent_tuple_desc->slots()[j];
 
-                    if (_output_slot_ids[parent_slot_desc->id()] && 
!child_tuple->is_null(child_slot_desc->null_indicator_offset())) {
+                    if (_output_slot_ids[parent_slot_desc->id()] &&
+                        
!child_tuple->is_null(child_slot_desc->null_indicator_offset())) {
                         // only write child slot if it is selected and not 
null.
                         void* dest_slot = 
tuple_ptr->get_slot(parent_slot_desc->tuple_offset());
-                        
RawValue::write(child_tuple->get_slot(child_slot_desc->tuple_offset()), 
dest_slot, parent_slot_desc->type(), row_batch->tuple_data_pool());
+                        
RawValue::write(child_tuple->get_slot(child_slot_desc->tuple_offset()),
+                                        dest_slot, parent_slot_desc->type(),
+                                        row_batch->tuple_data_pool());
                         
tuple_ptr->set_not_null(parent_slot_desc->null_indicator_offset());
                     } else {
                         
tuple_ptr->set_null(parent_slot_desc->null_indicator_offset());
                     }
                 }
                 parent_tuple_row->set_tuple(tuple_idx, tuple_ptr);
-                tuple_ptr = 
reinterpret_cast<Tuple*>(reinterpret_cast<uint8_t*>(tuple_ptr) + 
parent_tuple_desc->byte_size());
+                tuple_ptr = 
reinterpret_cast<Tuple*>(reinterpret_cast<uint8_t*>(tuple_ptr) +

Review comment:
       Why do you modify so many code formatting?




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to