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

Yongzhi Chen commented on HIVE-11042:
-------------------------------------

[~csun], it will cause more confusing if I change the existing 
replaceTaskId(String, String), the major part is different and can not 
combined. In replaceTaskId(String param1, String param2)  use case is pattern 
in param2, get pattern from param2, get lengh from param1 and replace param2. 
param2 called bucket number but it is major for bucket file(I think).
replaceTaskId(String param1, int param2) Is get pattern and length from from 
param1 and use param2 number .
It is not just switch order of the two params. 
I will change the comment and resubmit the patch. Thanks

> Need fix Utilities.replaceTaskId method
> ---------------------------------------
>
>                 Key: HIVE-11042
>                 URL: https://issues.apache.org/jira/browse/HIVE-11042
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 1.2.0
>            Reporter: Yongzhi Chen
>            Assignee: Yongzhi Chen
>         Attachments: HIVE-11042.1.patch
>
>
> When I are looking at other bug, I found Utilities.replaceTaskId (String, 
> int) method is not right.
> For example 
> Utilities.replaceTaskId"(ds%3D1)000001", 5); 
> return 0000000000005
> It should return (ds%3D1)000005



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

Reply via email to