Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-599

should not be able to create table when number of bucket is precedded with arthematic operators

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.0.0-incubating
    • None
    • spark-integration
    • None
    • spark 2.1 single node
      cluster

    Description

      when i created a table in carbon data it works even if arthematic number precedded the bucketnumber

      here are the logs

      spark.sql("""CREATE TABLE bugs(ID string)USING org.apache.spark.sql.CarbonSource OPTIONS("bucketnumber"="+1","bucketcolumns"="ID","tableName"="bugs")""");

      WARN 05-01 17:40:31,912 - Couldn't find corresponding Hive SerDe for data source provider org.apache.spark.sql.CarbonSource. Persisting data source table `default`.`bugs5` into Hive metastore in Spark SQL specific format, which is NOT compatible with Hive.
      res0: org.apache.spark.sql.DataFrame = []

      but in hive it gives exception

      here are logs ====

      hive> CREATE TABLE test888(user_id BIGINT, firstname STRING, lastname STRING)
      > CLUSTERED BY(user_id) INTO +1 BUCKETS;
      FAILED: ParseException line 2:27 extraneous input '+' expecting Number near '<EOF>'

      Attachments

        Activity

          People

            Unassigned Unassigned
            anubhavtarar anubhav tarar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: