Repository: spark
Updated Branches:
  refs/heads/branch-1.4 a0b047bf2 -> ff5e5f228


[SPARK-9238] [SQL] Remove two extra useless entries for bytesOfCodePointInUTF8

Only a trial thing, not sure if I understand correctly or not but I guess only 
2 entries in `bytesOfCodePointInUTF8` for the case of 6 bytes 
codepoint(1111110x) is enough.
Details can be found from https://en.wikipedia.org/wiki/UTF-8 in "Description" 
section.

Author: zhichao.li <[email protected]>

Closes #7582 from zhichao-li/utf8 and squashes the following commits:

8bddd01 [zhichao.li] two extra entries

(cherry picked from commit 846cf46282da8f4b87aeee64e407a38cdc80e13b)
Signed-off-by: Davies Liu <[email protected]>

Conflicts:
        unsafe/src/main/java/org/apache/spark/unsafe/types/UTF8String.java


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ff5e5f22
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ff5e5f22
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ff5e5f22

Branch: refs/heads/branch-1.4
Commit: ff5e5f2287edd740d836836f56acecc1a1fd75a8
Parents: a0b047b
Author: zhichao.li <[email protected]>
Authored: Fri Jul 24 08:34:50 2015 -0700
Committer: Davies Liu <[email protected]>
Committed: Fri Jul 24 08:36:46 2015 -0700

----------------------------------------------------------------------
 .../src/main/scala/org/apache/spark/sql/types/UTF8String.scala     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/ff5e5f22/sql/catalyst/src/main/scala/org/apache/spark/sql/types/UTF8String.scala
----------------------------------------------------------------------
diff --git 
a/sql/catalyst/src/main/scala/org/apache/spark/sql/types/UTF8String.scala 
b/sql/catalyst/src/main/scala/org/apache/spark/sql/types/UTF8String.scala
index e17743a..6bbff81 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/types/UTF8String.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/types/UTF8String.scala
@@ -196,7 +196,7 @@ object UTF8String {
     3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
     4, 4, 4, 4, 4, 4, 4, 4,
     5, 5, 5, 5,
-    6, 6, 6, 6)
+    6, 6)
 
   /**
    * Create a UTF-8 String from String


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

Reply via email to