Github user kiszk commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19222#discussion_r171590147
  
    --- Diff: 
common/unsafe/src/main/java/org/apache/spark/unsafe/types/UTF8String.java ---
    @@ -273,6 +286,7 @@ public long getPrefix() {
        * @param until the position after last code point, exclusive.
        */
       public UTF8String substring(final int start, final int until) {
    +    int numBytes = numBytes();
    --- End diff --
    
    Got it. I will leave this decision in the comment.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to