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

ASF GitHub Bot logged work on HIVE-24828:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Mar/21 04:58
            Start Date: 24/Mar/21 04:58
    Worklog Time Spent: 10m 
      Work Description: hsnusonic commented on a change in pull request #2073:
URL: https://github.com/apache/hive/pull/2073#discussion_r600173030



##########
File path: 
standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift
##########
@@ -1249,6 +1249,24 @@ struct ShowCompactResponse {
     1: required list<ShowCompactResponseElement> compacts,
 }
 
+struct GetLatestCompactionInfoRequest {
+    1: required string dbname,
+    2: required string tablename,
+    3: optional list<string> partitionnames,
+}
+
+struct LatestCompactionInfo {
+    1: required i64 id,
+    2: optional string partitionname,
+    3: required CompactionType type,
+}
+
+struct GetLatestCompactionInfoResponse {
+    1: required string dbname,
+    2: required string tablename,

Review comment:
       @pvary I removed these two fields in response. This API is required by 
metadata cache server to get the latest compaction event for a table/partition 
so we need to filter by table/partition.




-- 
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: 570941)
    Time Spent: 4h  (was: 3h 50m)

> [HMS] Provide new HMS API to return latest committed compaction record for a 
> given table
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-24828
>                 URL: https://issues.apache.org/jira/browse/HIVE-24828
>             Project: Hive
>          Issue Type: Sub-task
>          Components: HiveServer2
>            Reporter: Kishen Das
>            Assignee: Yu-Wen Lai
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 4h
>  Remaining Estimate: 0h
>
> We need a new HMS API to return the latest committed compaction record for a 
> given table. This can be used by a remote cache to decide whether a given 
> table's file metadata has been compacted or not, in order to decide whether 
> file metadata has to be refreshed from the file system before serving or it 
> can serve the current data from the cache. 



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

Reply via email to