[ 
https://issues.apache.org/jira/browse/HIVE-14726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15478671#comment-15478671
 ] 

Alan Gates commented on HIVE-14726:
-----------------------------------

I think the issue is that SortDynPartitionOptimizer is using the bucket column 
numbers to index into the array of columns.  UpdateDeleteSemanticAnalyzer is 
rewriting a delete query into an insert that contains only partition columns 
(see around line 150ff).  This means the bucket columns aren't in the rewritten 
query.  The bucket id is present since it's part of the ROW__ID, but we may 
need to write special code in SDPO to fetch it from there rather than look for 
the column.

> delete statement fails when spdo is on
> --------------------------------------
>
>                 Key: HIVE-14726
>                 URL: https://issues.apache.org/jira/browse/HIVE-14726
>             Project: Hive
>          Issue Type: Bug
>          Components: Logical Optimizer
>    Affects Versions: 2.1.0
>            Reporter: Deepesh Khandelwal
>            Assignee: Ashutosh Chauhan
>         Attachments: HIVE-14726.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to