carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anubhav tarar (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CARBONDATA-750) Improve exception information description while user input wrong creation table script
Date Tue, 07 Mar 2017 06:38:33 GMT

     [ 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)

Mime
View raw message