carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yadong Qi (JIRA)" <>
Subject [jira] [Created] (CARBONDATA-734) Can't create parquet/orc table with carbonsession
Date Wed, 01 Mar 2017 07:32:45 GMT
Yadong Qi created CARBONDATA-734:

             Summary: Can't create parquet/orc table with carbonsession
                 Key: CARBONDATA-734
             Project: CarbonData
          Issue Type: Bug
          Components: spark-integration
    Affects Versions: 1.1.0-incubating
            Reporter: Yadong Qi

When I create parquet table using the below command:
import org.apache.spark.sql.SparkSession 
import org.apache.spark.sql.CarbonSession._
val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("hdfs://")
carbon.sql("create table src(key int, value string) stored as parquet")
It will failed with the error info below:
java.lang.RuntimeException: [1.1] failure: identifier matching regex (?i)ALTER expected

create table src_004(key int, value string) stored as parquet
  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)
  ... 50 elided

This message was sent by Atlassian JIRA

View raw message