Github user javadba commented on the pull request:
https://github.com/apache/spark/pull/1586#issuecomment-50529156
Update: I am working on refining this proposal based on specifics of
Unicode Support in the Java Platform. Primary considerations are support for
Binary Multilingual Plane BMP in codepoint ranges 0x0000 to 0xffff and then
Supplementary Unicode in range 0x10000 to 0x10ffff.
Here is an authoratative (though admittedly dated) source from the java
platform team:
http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html
There are a few details in there that have opened my eyes, including 8-byte
sequences that use (0xD800-0xDBff,0xDC00-0xDFFF) pairs for Supplementary
Unicode chars.
What about the semantics? I think the semantics want to be: how many
Characters (not 16-bit chars) are in the string. The downside of this: it
would also be nice to know how many BYTES are in the string. I will mull on
these two options, but am leaning towards the former.
I will elaborate on these topics later today.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---