You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2013/10/16 21:33:42 UTC

[jira] [Updated] (PIG-3520) Provide backward compatibility for PigRunner and PPNL after PIG-3419

     [ https://issues.apache.org/jira/browse/PIG-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Dai updated PIG-3520:
----------------------------

    Attachment: PIG-3520-1.patch

Provide one option in the patch:
1. Retain all old methods in JobStats, MRJobStats provide implementation, other inheritance (eg, TezJobStats) will throw NotImplmented exception
2. Do something similar to PigStatsUtil/MRPigStatsUtil
3. In the future, user need to cast JobStats to backend-specific class to use backend-specific methods

The good:
1. Keep backward compatibility
2. Change is very small
3. Retain the spirit of multi-backend
4. Provide deprecate path

The ugly:
JobStats still contains MR specific methods initially


> Provide backward compatibility for PigRunner and PPNL after PIG-3419
> --------------------------------------------------------------------
>
>                 Key: PIG-3520
>                 URL: https://issues.apache.org/jira/browse/PIG-3520
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.13.0
>
>         Attachments: PIG-3520-1.patch
>
>
> PIG-3419 did backend refactory to support multiple backend. However, it break backward compatibility of two widely used API: PigRunner and PPNL. And it does not provide a deprecate path. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)