carbondata-issues mailing list archives

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

             Summary: 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
            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