Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-1053

ADD PARTITIONS for HCatalogStore

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Catalog
    • Labels:
      None

      Description

      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:

      INSERT OVERWRITE INTO t1 SELECT l_orderkey FROM lineitem;
      ALTER TABLE lineitem ADD PARTITIONS;
      

      For reference, "ADD PARTITIONS" just run on HCatalgStore.It doesn't run on another CatalogStore.

        Attachments

          Activity

            People

            • Assignee:
              blrunner Jaehwa Jung
              Reporter:
              blrunner Jaehwa Jung
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: