Github user manishgupta88 commented on the issue:
https://github.com/apache/carbondata/pull/2898
@ravipesala ....in this method we are passing the `List<Segment>` . The
list contains the segments file only from the new table. So only the new index
files will be loaded and queried and the same is covered in test case added as
part of this PR.
The stale dataMap entries will never be referred. For clearing them we need
to configure the LRU cache size which will automatically take care of eviction
when threshold is reached. If LRU cache size is not configured then there is no
mechanism to clear the stale datamaps
---