[jira] [Created] (CARBONDATA-4169) Secondary Index coarse grain datamap to work for existing Secondary Index tables

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CARBONDATA-4169) Secondary Index coarse grain datamap to work for existing Secondary Index tables

Akash R Nilugal (Jira)
Venugopal Reddy K created CARBONDATA-4169:
---------------------------------------------

             Summary: Secondary Index coarse grain datamap to work for existing Secondary Index tables
                 Key: CARBONDATA-4169
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-4169
             Project: CarbonData
          Issue Type: Sub-task
          Components: core, spark-integration
            Reporter: Venugopal Reddy K


With [PR 4110|[https://github.com/apache/carbondata/pull/4110],] user has to delete all segments from the older version of existing secondary index table and reload/sync all segments again to use them in the seconday index coarse grain datamap.  This restriction is due to the fact that PR expects CarbonCommonConstants.INDEX_STATUS property for the index to be set to IndexStatus.ENABLED in the index metadata when main table and respective secondary index table segments are in sync. And IndexChooser picks only IndexStatus.ENABLED indexes in the datamap pruning. It applies to bloom, lucene as well.

But this property was not set for the secondary indexes in the older versions as they were not part of datamap pruning.

 

To support the secondary index coarse grain datamap pruning for existing secondary indexes, need to support a way it happens automatically.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)