Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/13680#discussion_r79653637 --- Diff: sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeArrayData.java --- @@ -43,10 +43,11 @@ * * In the `values or offset&length` region, we store the content of elements. For fields that hold * fixed-length primitive types, such as long, double, or int, we store the value directly - * in the field. For fixed-length portion, each is word-aligned. For fields with non-primitive or - * variable-length values, we store a relative offset (w.r.t. the base address of the array) - * that points to the beginning of the variable-length field and length (they are combined into - * a long). For variable length portion, each is aligned to 8-byte boundaries. + * in the field. For fixed-length portion, each element value (even for byte) is word-aligned. --- End diff -- ok it's not confusing now but wrong... not each element value, but the whole region is word-aligned.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org