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

Alter table adding long datatype is failing but Create table with long type is successful, in Spark 2.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0, 1.3.1
    • None
    • None

    Description

      create table test4(a1 int) stored by 'carbondata';
       ---------+
       | Result  |
       ---------+
       ---------+
       No rows selected (1.757 seconds)
      **

       

      alter table test4 add columns (a6 long);

       Error: java.lang.RuntimeException:
       BaseSqlParser>>>> == Parse1 ==

       

      Operation not allowed: alter table add columns(line 1, pos 0)

       

      == SQL ==
       alter table test4 add columns (a6 long)
       ^^^

       

      == Parse2 ==
       [1.35] failure: identifier matching regex (?i)VARCHAR expected

       

      alter table test4 add columns (a6 long)
                                         ^;
       CarbonSqlParser>>>> [1.35] failure: identifier matching regex (?i)VARCHAR expected

       

      alter table test4 add columns (a6 long)
                                         ^ (state=,code=0)

      Attachments

        Issue Links

          Activity

            People

              dhatchayani dhatchayani
              dhatchayani dhatchayani
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 2h 10m
                  2h 10m