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

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

                Author: ASF GitHub Bot
            Created on: 24/Feb/23 08:43
            Start Date: 24/Feb/23 08:43
    Worklog Time Spent: 10m 
      Work Description: SourabhBadhya commented on code in PR #4077:
URL: https://github.com/apache/hive/pull/4077#discussion_r1116667806


##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactionQueryBuilder.java:
##########
@@ -237,7 +248,11 @@ String build() {
       query.append(" temporary external");
     }
     if (operation == Operation.INSERT) {
-      query.append(" into");
+      if (compactionType.equals(CompactionType.REBALANCE)) {
+        query.append(" overwrite");
+      } else {
+        query.append(" into");
+      }

Review Comment:
   Can we do this - 
   `query.append(compactionType.equals(CompactionType.REBALANCE) ? "overwrite" 
: "append");`





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

    Worklog Id:     (was: 847420)
    Time Spent: 50m  (was: 40m)

> Ability to sort the data during rebalancing compaction
> ------------------------------------------------------
>
>                 Key: HIVE-26735
>                 URL: https://issues.apache.org/jira/browse/HIVE-26735
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: László Végh
>            Assignee: László Végh
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Ability to sort the data during rebalancing compaction



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

Reply via email to