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

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

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

    https://github.com/apache/tajo/pull/263#discussion_r20838803
  
    --- Diff: tajo-docs/src/main/sphinx/hcatalog_integration.rst ---
    @@ -37,3 +37,16 @@ Finally, you should specify HCatalogStore as Tajo 
catalog driver class in ``conf
         <name>tajo.catalog.store.class</name>
         <value>org.apache.tajo.catalog.store.HCatalogStore</value>
       </property>
    +
    +.. note::
    +
    +  Hive stores a list of partitions for each table in its metastore. If new 
partitions are
    +  directly added to HDFS, HiveMetastore will not able aware of these 
partitions unless the user
    +  ``ALTER TABLE table_name ADD PARTITION`` commands on each of the newly 
added partitions or
    +  ``MSCK REPAIR TABLE  table_name`` command.
    +
    +  But current tajo doesn't provide ``ADD PARTITION`` command and hive 
doesn't provide a api for
    --- End diff --
    
    ```a api``` should be an api.


> ADD PARTITIONS for HCatalogStore
> --------------------------------
>
>                 Key: TAJO-1053
>                 URL: https://issues.apache.org/jira/browse/TAJO-1053
>             Project: Tajo
>          Issue Type: Improvement
>          Components: catalog
>            Reporter: Jaehwa Jung
>            Assignee: Jaehwa Jung
>             Fix For: 0.9.1
>
>
> Currently, tajo provides column partition for partitioned table. But there is 
> a lack in HCatalogStore. Tajo doesn't store a list of partitions for 
> partitioned table in CatalogStore. But Hive store a list of partitions in 
> HiveMetaStore. So, if you wrote partitioned table on Tajo, you must run msck 
> repair function or add partition on Hive. I think that it is a very 
> inefficient work. Thus, tajo need to repair partitioned directory list after 
> writing partitioned table in HCatalgStore as follows:
> {code:xml}
> INSERT OVERWRITE INTO t1 SELECT l_orderkey FROM lineitem;
> ALTER TABLE lineitem ADD PARTITIONS;
> {code}
> For reference, "ADD PARTITIONS" just run on HCatalgStore.It doesn't run on 
> another CatalogStore.



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

Reply via email to