[
https://issues.apache.org/jira/browse/HIVE-21160?focusedWorklogId=776254&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-776254
]
ASF GitHub Bot logged work on HIVE-21160:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 31/May/22 11:42
Start Date: 31/May/22 11:42
Worklog Time Spent: 10m
Work Description: kasakrisz commented on code in PR #2855:
URL: https://github.com/apache/hive/pull/2855#discussion_r885532179
##########
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:
Added javadocs, and the `deprecated` string into the comment.
Issue Time Tracking
-------------------
Worklog Id: (was: 776254)
Time Spent: 2.5h (was: 2h 20m)
> 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: 2.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)