[ 
https://issues.apache.org/jira/browse/SPARK-14402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15225985#comment-15225985
 ] 

Sean Owen commented on SPARK-14402:
-----------------------------------

Oh I see. That's a more specific and probably legit issue. If the intent is to 
emulate initcap from Hive then you're right that this doesn't behave the same 
way, since it explicitly promises to un-capitalize the rest of the letters. 
Maybe retitle this?

Are there other usages of toTitleCase? if this is the only one and it's not fit 
for purpose, maybe it should be moved out to the code implementing initcap and 
modified to implement initcap.

> UTF8String.toTitleCase should return non-first letters in lowercase 
> --------------------------------------------------------------------
>
>                 Key: SPARK-14402
>                 URL: https://issues.apache.org/jira/browse/SPARK-14402
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>            Reporter: Dongjoon Hyun
>            Priority: Minor
>
> Current `UTF8String.toTitleCase` implementation changes only the first letter 
> and just copy the other letters: e.g. *sParK* --> *SParK*. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to