Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2255#discussion_r186312034
  
    --- Diff: 
datamap/lucene/src/main/java/org/apache/carbondata/datamap/lucene/LuceneDataMapFactoryBase.java
 ---
    @@ -153,8 +153,8 @@ public DataMapWriter createWriter(Segment segment, 
String shardName) {
       }
     
       @Override
    -  public DataMapRefresher createRefresher(Segment segment, String 
shardName) {
    -    return new LuceneDataMapRefresher(getCarbonTable().getTablePath(), 
dataMapName,
    +  public DataMapBuilder createBuilder(Segment segment, String shardName) {
    --- End diff --
    
    For a managed table (traditional carbondata table) a shard is an index 
generated by same write task while loading, inside one segment. 
    For external table, shard concept is the same, there are segments and 
shards inside each partition folder. There is a segment file in meta folder to 
indicate the segment and shard path.


---

Reply via email to