[
https://issues.apache.org/jira/browse/SPARK-4151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Josh Rosen updated SPARK-4151:
------------------------------
Target Version/s: 1.1.2 (was: 1.1.0)
Fix Version/s: (was: 1.1.2)
(was: 1.1.0)
Removing the "Fix Version/s" field, since we only use that to indicate where
fixes have been applied, not where we plan to apply them; moved those versions
over to "Target Version/s" instead.
> Add string operation function trim, ltrim, rtrim, length to support SparkSql
> (HiveQL)
> --------------------------------------------------------------------------------------
>
> Key: SPARK-4151
> URL: https://issues.apache.org/jira/browse/SPARK-4151
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 1.1.0
> Reporter: shengli
> Priority: Minor
> Original Estimate: 72h
> Remaining Estimate: 72h
>
> Add three string operation functions to support spark sql and hiveql.
> eg:
> sql("select trim(' a b ') from src ").collect() --> 'a b'
> sql("select ltrim(' a b ') from src ").collect() --> 'a b '
> sql("select rtrim(' a b ') from src ").collect() --> ' a b'
> sql("select length('ab') from src ").collect() --> 2
> And Rename the trait of stringOperations.scala.
> I prefer to rename trait CaseConversionExpression to
> StringTransformationExpression, it is more make sence than before so that
> this trait can support more string transformation but not only caseconversion.
> And also add a trait StringCalculationExpression that do string computation
> like length, indexof etc....
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]