You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "anubhav tarar (JIRA)" <ji...@apache.org> on 2017/03/07 06:38:33 UTC

[jira] [Assigned] (CARBONDATA-750) Improve exception information description while user input wrong creation table script

     [ https://issues.apache.org/jira/browse/CARBONDATA-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

anubhav tarar reassigned CARBONDATA-750:
----------------------------------------

    Assignee: anubhav tarar

> Improve exception information description while user input wrong creation table script
> --------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-750
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-750
>             Project: CarbonData
>          Issue Type: Improvement
>          Components: sql
>            Reporter: Liang Chen
>            Assignee: anubhav tarar
>            Priority: Minor
>
> 1. Use wrong creation table script:
> scala> carbon.sql("CREATE TABLE carbontable1 (id,int,age string,year,int) STORED BY 'carbondata'")
> java.lang.RuntimeException: [1.1] failure: identifier matching regex (?i)ALTER expected
> CREATE TABLE carbontable1 (id,int,age string,year,int) STORED BY 'carbondata'
> ^
>   at scala.sys.package$.error(package.scala:27)
>   at org.apache.spark.sql.parser.CarbonSpark2SqlParser.parse(CarbonSpark2SqlParser.scala:45)
>   at org.apache.spark.sql.parser.CarbonSparkSqlParser.parsePlan(CarbonSparkSqlParser.scala:51)
>   at org.apache.spark.sql.SparkSession.sql(SparkSession.scala:592)
> 2.Need improve the exception information description, like : unexpected "," found
> CREATE TABLE carbontable1 (id,int,age string,year,int) STORED BY 
>                                                      ^



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)