You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Ravindra Pesala (JIRA)" <ji...@apache.org> on 2018/03/29 01:51:00 UTC

[jira] [Created] (CARBONDATA-2291) Add datamap status and refresh command to sync data manually to datamaps

Ravindra Pesala created CARBONDATA-2291:
-------------------------------------------

             Summary: Add datamap status and refresh command to sync data manually to datamaps
                 Key: CARBONDATA-2291
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2291
             Project: CarbonData
          Issue Type: New Feature
            Reporter: Ravindra Pesala


Currently, there is no way to synchronize datamaps manually to the fact table. So at first added the functionality to load the datamaps manually by using command {{refresh}}

{{REFRESH DATAMAP <datamapName> }}

Above command syncs the data between the datamap and parent tables.

In order maintain the data consistency we require to enable or disable datamaps when data is not synchronized between fact and datamap. So added the new status called datamapstatus file under the system folder. whenever the data is out of sync between parent tables and datamap it just updates the status as disabled in datamapstatus file. After user manually refreshes the datamap it will update the status to enable.
Only the enabled datamaps are considered during query.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)