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

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

                Author: ASF GitHub Bot
            Created on: 31/May/22 09:07
            Start Date: 31/May/22 09:07
    Worklog Time Spent: 10m 
      Work Description: pvary commented on code in PR #2855:
URL: https://github.com/apache/hive/pull/2855#discussion_r885393100


##########
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java:
##########
@@ -3381,11 +3381,19 @@ public static enum ConfVars {
     MERGE_CARDINALITY_VIOLATION_CHECK("hive.merge.cardinality.check", true,
       "Set to true to ensure that each SQL Merge statement ensures that for 
each row in the target\n" +
         "table there is at most 1 matching row in the source table per SQL 
Specification."),
+    SPLIT_UPDATE("hive.split.update", true,
+            "If true, SQL Update statement will be rewritten to a multi-insert 
with 2 branches:\n" +
+                    "representing delete of existing row and an insert of the 
new version of the row.\n" +
+                    "Similarly Merge statement will handle WHEN MATCHED UPDATE 
by splitting it into 2\n" +
+                    "branches of a multi-insert. Updating bucketing and 
partitioning columns should\n" +
+                    "only be permitted if this is true."),
+    @Deprecated
     MERGE_SPLIT_UPDATE("hive.merge.split.update", true,
         "If true, SQL Merge statement will handle WHEN MATCHED UPDATE by 
splitting it into 2\n" +
             "branches of a multi-insert, representing delete of existing row 
and an insert of\n" +
             "the new version of the row.  Updating bucketing and partitioning 
columns should\n" +
-            "only be permitted if this is true."),
+            "only be permitted if this is true.\n" +
+            "Use hive.split.update instead."),

Review Comment:
   Also use `deprecated` string in the comment 😄 





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

    Worklog Id:     (was: 776147)
    Time Spent: 1h 50m  (was: 1h 40m)

> Rewrite Update statement as Multi-insert and do Update split early
> ------------------------------------------------------------------
>
>                 Key: HIVE-21160
>                 URL: https://issues.apache.org/jira/browse/HIVE-21160
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Transactions
>    Affects Versions: 3.0.0
>            Reporter: Eugene Koifman
>            Assignee: Krisztian Kasa
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to