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

No_Inverted is applied for all newly added column irrespect of specified in tableproperties

    XMLWordPrintableJSON

Details

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

    Description

      If No_Inverted_Index is specified in tableproperties during addition of several column. All columns are being considered as No_Inverted_Index, even if few of them is marked as No_Inverted_Index in tableproperties .

      *Steps to Reproduce : *

      
      sql(
            """
                 CREATE TABLE IF NOT EXISTS NO_INVERTED_CARBON
                 (id Int, name String, city String)
                 STORED BY 'org.apache.carbondata.format'
                 TBLPROPERTIES('NO_INVERTED_INDEX'='city')
            """)
      
          sql("alter table NO_INVERTED_CARBON add columns(col1 string,col2 string) tblproperties('NO_INVERTED_INDEX'='col2')")
      
      sql("desc formatted NO_INVERTED_CARBON").show()
      
      

      Expected : 2 columns should be marked as delete(city and col2)
      Actual : 3 columns is being marked as delete(city,col1 and col2)

      Attachments

        Issue Links

          Activity

            People

              rahulknoldus Rahul Kumar
              rahulknoldus Rahul Kumar
              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 - 5h
                  5h