You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Venugopal Reddy K (Jira)" <ji...@apache.org> on 2021/04/21 08:36:00 UTC

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

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)