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

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

                Author: ASF GitHub Bot
            Created on: 28/Oct/22 06:30
            Start Date: 28/Oct/22 06:30
    Worklog Time Spent: 10m 
      Work Description: rkirtir commented on code in PR #3708:
URL: https://github.com/apache/hive/pull/3708#discussion_r1007690398


##########
standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift:
##########
@@ -1351,7 +1351,9 @@ struct ShowCompactRequest {
     4: required string tablename,
     5: optional string partitionname,
     6: required CompactionType type,
-    7: required string state
+    7: required string state,
+    8: optional i64 limit,
+    9: optional string order

Review Comment:
   Agree added map for exp,order in ShowCompactionAnalyzer



##########
ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands.java:
##########
@@ -2155,6 +2155,11 @@ public void testShowCompactions() throws Exception {
     ShowCompactResponse rsp = txnHandler.showCompact(new ShowCompactRequest());
     List<String> r = runStatementOnDriver("SHOW COMPACTIONS");
     Assert.assertEquals(rsp.getCompacts().size()+1, r.size());//includes 
Header row
+    r = runStatementOnDriver("SHOW COMPACTIONS LIMIT 3");
+    Assert.assertEquals(4, r.size());
+
+    r = runStatementOnDriver("SHOW COMPACTIONS SCHEMA mydb1 TYPE 'MAJOR' ORDER 
BY CC_PARTITION ASC , CC_TABLE DESC");

Review Comment:
   fixed





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

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

> SHOW COMPACTIONS should support ordering and limiting functionality in 
> filtering options
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-26580
>                 URL: https://issues.apache.org/jira/browse/HIVE-26580
>             Project: Hive
>          Issue Type: Improvement
>    Affects Versions: 3.0.0
>            Reporter: KIRTI RUGE
>            Assignee: KIRTI RUGE
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> SHOW COMPACTION should provide ordering by defied table . It should also 
> support limitation of fetched records



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to