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

Huaxin Gao commented on SPARK-12459:
------------------------------------

Hi Yi Huai, 

I added ExpressionDescription for most of the string functions except the 
following: 
Contains
EndsWith
FindInSet
StartsWith
StringSpace 
I didn't see the corresponding functions in functions.scala, so I didn't add 
ExpressionDescription for these 5 functions.

Also, for base64 and decode. I couldn't figure out what to use for binary 
String, so I just use 'test' as the following, is this OK with you? 
For unbase64
@ExpressionDescription(
  usage = "_FUNC_(string) - Computes the BASE64 encoding of the binary string 
and returns it",
  extended = "> SELECT _FUNC_('test');\n 'dGVzdA=='") 

For decode
@ExpressionDescription(
  usage = "_FUNC_(binary, charset) - Computes the binary into a string " +
    "using the provided character set (one of 'US-ASCII', 'ISO-8859-1', 
'UTF-8', 'UTF-16BE', " +
    "'UTF-16LE', 'UTF-16'). If either argument is null, the result will also be 
null",
  extended = "> SELECT _FUNC_('test', 'UTF-8'));\n 'test")



> Add ExpressionDescription to string functions
> ---------------------------------------------
>
>                 Key: SPARK-12459
>                 URL: https://issues.apache.org/jira/browse/SPARK-12459
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Yin Huai
>




--
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