Yida Wu has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24132 )

Change subject: IMPALA-14851: Codegen GroupingAggregator::CopyGroupingValues
......................................................................


Patch Set 7:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/24132/7//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/24132/7//COMMIT_MSG@19
PS7, Line 19:
Could you please mention the tests we ran here?


http://gerrit.cloudera.org:8080/#/c/24132/7/be/src/exec/grouping-aggregator.h
File be/src/exec/grouping-aggregator.h:

http://gerrit.cloudera.org:8080/#/c/24132/7/be/src/exec/grouping-aggregator.h@191
PS7, Line 191: CodegenCopyGroupingValues
Please add the comments for this function


http://gerrit.cloudera.org:8080/#/c/24132/7/be/src/exec/grouping-aggregator.h@544
PS7, Line 544:   void CopyGroupingValuesFixedLenSlot(Tuple* intermediate_tuple, 
int idx,
             :       NullIndicatorOffset null_indicator_offset, int 
tuple_offset, int slot_size)
             :       noexcept;
             :
             :   /// Returns number of bytes copied
             :   int CopyGroupingValuesStringSlot(Tuple* intermediate_tuple, 
int idx, int tuple_offset,
             :       uint8_t* buffer) noexcept;
Would it be better to add IR_ALWAYS_INLINE for these two functions?


http://gerrit.cloudera.org:8080/#/c/24132/7/be/src/exec/grouping-aggregator.h@544
PS7, Line 544:   void CopyGroupingValuesFixedLenSlot(Tuple* intermediate_tuple, 
int idx,
             :       NullIndicatorOffset null_indicator_offset, int 
tuple_offset, int slot_size)
             :       noexcept;
             :
             :   /// Returns number of bytes copied
             :   int CopyGroupingValuesStringSlot(Tuple* intermediate_tuple, 
int idx, int tuple_offset,
             :       uint8_t* buffer) noexcept;
Please add comments to describe the functions


http://gerrit.cloudera.org:8080/#/c/24132/7/be/src/exec/grouping-aggregator.cc
File be/src/exec/grouping-aggregator.cc:

http://gerrit.cloudera.org:8080/#/c/24132/7/be/src/exec/grouping-aggregator.cc@1319
PS7, Line 1319:   // args[3] varlen_size, is unused
We could either remove it entirely, or use it for an assertion. I think adding 
a DCHECK_EQ to verify that the actual copied length matches varlen_size might 
be better



--
To view, visit http://gerrit.cloudera.org:8080/24132
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia2c54a5745ba05a926795318d3b074fde6d0c00a
Gerrit-Change-Number: 24132
Gerrit-PatchSet: 7
Gerrit-Owner: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Yida Wu <[email protected]>
Gerrit-Comment-Date: Thu, 23 Apr 2026 04:21:46 +0000
Gerrit-HasComments: Yes

Reply via email to