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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Akash R Nilugal (Jira)
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)