carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anurag Srivastava (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CARBONDATA-640) Insert Query with Hardcoded values is not working
Date Mon, 16 Jan 2017 06:37:26 GMT

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

Anurag Srivastava edited comment on CARBONDATA-640 at 1/16/17 6:36 AM:
-----------------------------------------------------------------------

Hi Vyom,

Can you please use this query ?

*Query :* insert into employees select t.* from ( select 'harry','h2399','v788232',99823230205
) t;

This query will insert data into your table.

!https://issues.apache.org/jira/secure/attachment/12847578/insert_data.png!


was (Author: anuragknoldus):
Hi Vyom,

Can you please use this query ?

*Query :* insert into employees select t.* from ( select 'harry','h2399','v788232',99823230205
) t;

This query will insert data into your table.



> Insert Query with Hardcoded values is not working
> -------------------------------------------------
>
>                 Key: CARBONDATA-640
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-640
>             Project: CarbonData
>          Issue Type: Bug
>          Components: sql
>            Reporter: Vyom Rastogi
>            Priority: Minor
>         Attachments: insert_data.png
>
>
> 1)Creating table employees,Managers
> create table employees(name string, empid string, mgrid string, mobileno bigint) stored
by 'carbondata';
> 2)create table managers(name string, empid string, mgrid string, mobileno bigint) stored
by 'carbondata';
> Insert into Select Queries
> insert into managers select 'harry','h2399','v788232',99823230205;
> Error Description:
> Error: org.apache.spark.sql.AnalysisException: Failed to recognize predicate '<EOF>'.
Failed rule: 'regularBody' in statement; line 1 pos 65 (state=,code=0)



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

Mime
View raw message