zanmato1984 commented on code in PR #40998:
URL: https://github.com/apache/arrow/pull/40998#discussion_r1568981056
##########
cpp/src/arrow/compute/row/row_internal.cc:
##########
@@ -68,6 +68,10 @@ void RowTableMetadata::FromColumnMetadataVector(
// For the varying-length column, the fixed-length part is the 32-bit field
storing
// cumulative length of varying-length fields.
//
+ // The purpose of 'Sort Columns' here is construct an aligned friendly
condition
+ // for memory access. Resorted order will be used to produce an aligned
column_offset
+ // for access the row data in 'RowTableEncoder', 'RowTableImpl' and
'KeyCompare'.
Review Comment:
```suggestion
// cumulative length of varying-length fields. This is to make the memory
access of each individual column within the encoded row alignment-friendly.
```
--
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]