Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-4160 Alter carbon schema related to complex columns
  3. CARBONDATA-4179

Support renaming of complex columns including nested levels(array/struct)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • None
    • None

    Description

      Complex columns supported for - array and struct.

      For schema lets say- str struct<a:int> the following points will be considered   - 

      1) Rename parent name str to str2 

      alter table test_rename change str str2 struct<a:int>

       

      2) Rename child name from a to b

      alter table test_rename change str str struct<b:int>

       

      NOTE-
      Rename operation fails if the structure of the complex column has been altered. This check ensures the old and new columns are compatible with each other. Meaning the number of children and complex levels should be unaltered while attempting to rename.

      Attachments

        Activity

          People

            Unassigned Unassigned
            akshay_97 Akshay
            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 - 21.5h
                21.5h