[ 
https://issues.apache.org/jira/browse/TAJO-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14902949#comment-14902949
 ] 

ASF GitHub Bot commented on TAJO-1673:
--------------------------------------

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

    https://github.com/apache/tajo/pull/626#discussion_r40110721
  
    --- Diff: 
tajo-core/src/main/java/org/apache/tajo/master/exec/DDLExecutor.java ---
    @@ -23,29 +23,36 @@
     import org.apache.hadoop.fs.FileStatus;
     import org.apache.hadoop.fs.FileSystem;
     import org.apache.hadoop.fs.Path;
    +import org.apache.hadoop.fs.PathFilter;
     import org.apache.tajo.algebra.AlterTableOpType;
     import org.apache.tajo.algebra.AlterTablespaceSetType;
     import org.apache.tajo.annotation.Nullable;
     import org.apache.tajo.catalog.*;
    +import org.apache.tajo.catalog.partition.PartitionMethodDesc;
     import org.apache.tajo.catalog.proto.CatalogProtos;
     import org.apache.tajo.catalog.proto.CatalogProtos.AlterTablespaceProto;
     import org.apache.tajo.catalog.proto.CatalogProtos.PartitionKeyProto;
    +import org.apache.tajo.catalog.proto.CatalogProtos.PartitionDescProto;
     import org.apache.tajo.conf.TajoConf;
     import org.apache.tajo.engine.query.QueryContext;
     import org.apache.tajo.exception.*;
     import org.apache.tajo.master.TajoMaster;
     import org.apache.tajo.plan.LogicalPlan;
     import org.apache.tajo.plan.logical.*;
    +import org.apache.tajo.plan.rewrite.rules.PartitionedTableRewriter;
     import org.apache.tajo.plan.util.PlannerUtil;
     import org.apache.tajo.storage.FileTablespace;
     import org.apache.tajo.storage.StorageUtil;
     import org.apache.tajo.storage.Tablespace;
     import org.apache.tajo.storage.TablespaceManager;
     import org.apache.tajo.util.Pair;
    +import org.apache.tajo.util.StringUtils;
    +import org.apache.tajo.util.TUtil;
     
     import java.io.IOException;
     import java.util.ArrayList;
     import java.util.List;
    +import java.util.Set;
    --- End diff --
    
    Unused import.


> Implement recover partitions
> ----------------------------
>
>                 Key: TAJO-1673
>                 URL: https://issues.apache.org/jira/browse/TAJO-1673
>             Project: Tajo
>          Issue Type: Sub-task
>          Components: Catalog
>            Reporter: Jaehwa Jung
>            Assignee: Jaehwa Jung
>             Fix For: 0.11.0, 0.12.0
>
>         Attachments: TAJO-1673.patch, TAJO-1673_2.patch
>
>
> Tajo stores a list of partitions for each table in its CatalogStore. If, 
> however, new partitions are directly added to HDFS, the CatalogStore will not 
> be aware of these partitions unless the user runs ALTER TABLE table_name ADD 
> PARTITION commands on each of the newly added partitions.
> However, users can run a CatalogStore check command with the repair table 
> option:
> {code:xml}
> MSCK REPAIR TABLE <table_name>
> {code}
> For the reference, I've referenced hive msck command.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to