[ 
https://issues.apache.org/jira/browse/GOBBLIN-1011?focusedWorklogId=362652&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-362652
 ]

ASF GitHub Bot logged work on GOBBLIN-1011:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Dec/19 19:04
            Start Date: 23/Dec/19 19:04
    Worklog Time Spent: 10m 
      Work Description: autumnust commented on pull request #2856: 
[GOBBLIN-1011] adjust compaction flow to work with virtual partition
URL: https://github.com/apache/incubator-gobblin/pull/2856#discussion_r360971895
 
 

 ##########
 File path: 
gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/metastore/HiveMetaStoreBasedRegister.java
 ##########
 @@ -473,6 +475,10 @@ public void dropTableIfExists(String dbName, String 
tableName) throws IOExceptio
   public void dropPartitionIfExists(String dbName, String tableName, 
List<Column> partitionKeys,
       List<String> partitionValues) throws IOException {
     try (AutoReturnableObject<IMetaStoreClient> client = 
this.clientPool.getClient()) {
+      if (client.get().getPartition(dbName, tableName, partitionValues) == 
null) {
 
 Review comment:
   1. Could you clean up the catch block on `NoSuchObjectException` is you 
decide to use existence check instead of relying on the exception to determine 
there's no such object ? 
   2. I am not familiar with this getPartition API but sending a list of 
partition values but returning single partition object seems to be a little bit 
strange. Can you double check the semantic ? Or alternative there's a 
`listPartitions` method which is usually the API that I used for checking 
existence. 
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 362652)
    Time Spent: 1h 20m  (was: 1h 10m)

> Adjust compaction flow to work with virtual partition
> -----------------------------------------------------
>
>                 Key: GOBBLIN-1011
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1011
>             Project: Apache Gobblin
>          Issue Type: Task
>            Reporter: Zhixiong Chen
>            Assignee: Zhixiong Chen
>            Priority: Major
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> - Update existing `CompactionVerifier`s and `CompactionCompleteAction`s to 
> work with virtual simple file system dataset proply
> - Improve ser/de of `FileSystemDataset` in `CompactionSuiteBase`
> - Update gobblin-hive-registration to work with table parameters properly



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to