carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naresh P R (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CARBONDATA-583) Replace Function is not working for string/char
Date Thu, 05 Jan 2017 09:02:58 GMT

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

Naresh P R commented on CARBONDATA-583:
---------------------------------------

[~phalodi], you can refer below documentation for supported functions.
https://spark.apache.org/docs/1.6.1/api/java/org/apache/spark/sql/functions.html

IMHO, Apart from CarbonData specific UDFs, we can use standard UDF APIs to register user specific
functions instead of including it as part of CarbonData

> Replace Function is not working  for string/char
> ------------------------------------------------
>
>                 Key: CARBONDATA-583
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-583
>             Project: CarbonData
>          Issue Type: Bug
>          Components: data-load
>    Affects Versions: 1.0.0-incubating
>         Environment: cluster
>            Reporter: Anurag Srivastava
>            Assignee: Rahul Kumar
>            Priority: Minor
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> I am running "replace" function but it is giving error : "undefined function replace".
> Query : select replace('aaabbccaabb', 'aaa', 't');
> Expected Result : "tbbccaabb"
> Result : Error: org.apache.spark.sql.AnalysisException: undefined function replace; line
1 pos 30 (state=,code=0) 



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

Mime
View raw message