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

Create table with columns contains spaces in name.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

      I want to create table, using columns that contains spaces. I am using Thrift Server and Beeline client for accessing carbon data. Whenever i am trying to create a table, and their columns name contains spaces i am getting an error. Below are the steps:

      Step 1:
      create table three (`first name` string, `age` int) stored by 'carbondata';

      Whenever i am executing above query, i am getting below error:
      Error: org.apache.carbondata.spark.exception.MalformedCarbonCommandException: Unsupported data type : FieldSchema(name:first name, type:string, comment:null).getType (state=,code=0)

      The above error is pretending to be wrong data types are using.

      If I am removing `stored by 'carbondata'` from query, then this will work fine because it is run on Hive.

      Attachments

        Issue Links

          Activity

            People

              harmeetsingh Harmeet Singh
              harmeetsingh Harmeet Singh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m