You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Anurag Srivastava (JIRA)" <ji...@apache.org> on 2017/01/20 10:42:26 UTC
[jira] [Closed] (CARBONDATA-630) Unable to use string function on
string/char data type column
[ https://issues.apache.org/jira/browse/CARBONDATA-630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anurag Srivastava closed CARBONDATA-630.
----------------------------------------
Resolved
> Unable to use string function on string/char data type column
> -------------------------------------------------------------
>
> Key: CARBONDATA-630
> URL: https://issues.apache.org/jira/browse/CARBONDATA-630
> Project: CarbonData
> Issue Type: Bug
> Components: sql
> Affects Versions: 1.0.0-incubating
> Environment: SPARK-2.1.0
> Reporter: Anurag Srivastava
> Priority: Minor
> Fix For: 1.0.0-incubating
>
> Attachments: 2000_UniqData.csv, exception.png, Executor log
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> I am trying to execute string function like: reverse, concat, lower, upper with the string/char column but it is giving error and when I am giving direct string value to it, it is working.
> *Create Table :* CREATE TABLE uniqdata_char (CUST_ID int,CUST_NAME char(30),ACTIVE_EMUI_VERSION char(30), DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ('TABLE_BLOCKSIZE'= '256 MB');
> *Load Data :* LOAD DATA INPATH 'hdfs://localhost:54310/2000_UniqData.csv' into table uniqdata_char OPTIONS ('DELIMITER'=',' ,'QUOTECHAR'='""','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','MAXCOLUMNS'='12');
> *Query :* select Lower(cust_name) from uniqdata_char;
> After running the query I am getting error.
> !https://issues.apache.org/jira/secure/attachment/12847185/exception.png!
> But when I am running :
> select Lower('TESTING') from uniqdata_char;
> It is working fine.
> I have attached CSV and Executor log with it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)