[ 
https://issues.apache.org/jira/browse/CARBONDATA-4105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ajantha Bhat closed CARBONDATA-4105.
------------------------------------
    Resolution: Not A Bug

> Select * query fails after a SDK written segment is added by alter table add 
> segment query.
> -------------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-4105
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-4105
>             Project: CarbonData
>          Issue Type: Bug
>          Components: core
>            Reporter: Karan
>            Priority: Major
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> When a SDK written segment on which read is already performed once, is added 
> through alter table add segment query to a carbon table, then select * query 
> fails after adding it.
> In SDK segments the segmentId is the timestamp of the segment. When the SDK 
> segment is read before adding, its indexes are stored in cache. Cache is a 
> map of indexFilePath to Indexes. Now when the same segment is added to carbon 
> table its segment ID is no longer the timestamp but the indexFilePath remains 
> same as it is added externally. Now when we run select * query we get the 
> indexes from the cache, but it is unable to map it to segment, because 
> segment id changes.



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

Reply via email to